How mryog07/broadcast-bot works
MTC Unified Bot is a Telegram bot for managing Marathi and Hindi channel broadcasts. An administrator adds channels, broadcasts a replied-to message to the selected channel set, and can later delete the recorded copies; stats report registered channel counts. Pyrogram handles private commands, Motor persists channel registrations and broadcast message IDs in MongoDB, and Flask exposes a keep-alive endpoint. All behavior is implemented in bot.py; the graph reflects only relationships visible in that excerpt.
Main entry points: bot.py Command handlers
Components 10
Telegram Bot
- Command handlers
bot.py - Channel broadcasts
bot.py - Pyrogram client
bot.py
MongoDB State
- Channel registries
bot.py - Broadcast records
bot.py
Keep Alive
- Health endpoint
bot.py - Flask server
bot.py
Other components
- Bot users and admin
- Telegram channels
- Keep-alive monitor
Connections 13
- Bot users and admin → Command handlers: sends commands
bot.py - Command handlers → Channel registries: registers channels
bot.py - Command handlers → Channel registries: counts channels
bot.py - Command handlers → Channel broadcasts: requests broadcast
bot.py - Channel broadcasts → Channel registries: reads recipients
bot.py - Channel broadcasts → Telegram channels: copies message
bot.py - Command handlers → Broadcast records: reads delete IDs
bot.py - Command handlers → Broadcast records: removes record
bot.py - Channel broadcasts → Broadcast records: stores sent IDs
bot.py - Command handlers → Pyrogram client: deletes messages
bot.py - Keep-alive monitor → Health endpoint: requests health
bot.py - Flask server → Health endpoint: serves route
bot.py - Pyrogram client → Command handlers: dispatches commands
bot.py