A simple Telegram bot that can broadcast messages and media to the bot subscribers. with mongo DB support
A simple Telegram bot that can broadcast messages and media to the bot subscribers using MongoDB.
/settings
commands.BOT_TOKEN
- Get from @BotFather
API_ID
- Get it from telegram.org
API_HASH
- Get it from telegram.org
AUTH_USERS
- Authorised user's ID to use Admin Commands {Split 💔 with a space}.DB_URL
- MongoDB Database URI get it from mongodb.com
LOG_CHANNEL
- Log Channel ID to get new user notifications.
BROADCAST_AS_COPY
- Value should be True
or False
.
True
broadcast messages will be forwarder As Copy. If False
broadcast messages will be forwarded with Forward Tag.DB_NAME
- mongodb.com Collection name to be used.start - Start the bot 🥲
settings - Customise settings
stats - Total User Number in Database
broadcast - Reply to Message to Broadcast
ban_user - Ban A User with time & reason
unban_user - Unban a User
banned_users - Show Banned Users
git clone https://github.com/nacbots/BroadcastBot
cd BroadcastBot
pip3 install -r requirements.txt
# EDIT config.py values appropriately
python3 main.py
Feel free to create a pull or create a issue now and describe your issue freely.