๐ฝ๐ง๐ค๐๐๐๐๐จ๐ฉ ๐ฝ๐ค๐ฉ
A simple Telegram bot that can broadcast messages and media to the bot subscribers using MongoDB.
Features
- Support mongodb.com database
๐ for user's record๐น . - User's can choose whether to enable Broadcast messages or not using
/settingscommands. - Logs New User's in any channel.
- Get total user's count in Database.
- Ban and UnBan any user.
Required Configs
BOT_TOKEN- Get from @BotFatherAPI_ID- Get it from telegram.orgAPI_HASH- Get it from telegram.orgLOG_CHANNEL- Log Channel ID to get new user notifications.- This for some getting user info. If any new User added to DB, Bot will send Log to that Logs Channel. You can use same DB Channel ID.
AUTH_USERS- Authorised user's ID to use Admin Commands {Split๐ with a space}.DB_URL- MongoDB Database URI get it from mongodb.com- This for Saving UserIDs. When you will Broadcast, bot will forward the Broadcast to DB Users.
Optional Configs
BROADCAST_AS_COPY- Value should beTrueorFalse.- If
Truebroadcast messages will be forwarder As Copy. IfFalsebroadcast messages will be forwarded with Forward Tag.
- If
DB_NAME- mongodb.com Collection name to be used.
User's Commands
๐
start - Start the bot ๐ฅฒ
settings - Customise settings
Admin Commands
๐คซ
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
Deploy
๐
Easiest Heroku Deploy
๐คญ
Host Locally
๐ค
git clone https://github.com/nacbots/BroadcastBot
cd BroadcastBot
pip3 install -r requirements.txt
# EDIT config.py values appropriately
python3 main.py
Support Group:
Found a Bug
๐
Feel free to create a pull or create a issue now and describe your issue freely.
