How evoitsykhiv/telegram-notification-bot works
This is a small Telegram notification bot. A user sends a command through Telegram; the bot polls for updates and handles /start, /status, /test, and /help. The test handler calls the notifier, which sends a message to the configured chat. Configuration is loaded from environment variables, with python-dotenv also loading a local .env file. The source excerpts show command and notification behavior; no broader automation workflow is evidenced.
Main entry points: bot.py Command handlers · notifier.py Notification sender · config.py Environment config
Components 7
Bot runtime
- Command handlers
bot.py - Notification sender
notifier.py
Configuration
- Environment config
config.py
Other components
- Telegram user
- Environment values
- Telegram API
- Configured chat
Connections 11
- Command handlers → Environment config: reads token
- Notification sender → Environment config: reads credentials
- Environment values → Environment config: loads values
- Command handlers → Telegram API: polls updates
- Telegram API → Command handlers: delivers commands
- Telegram user → Telegram API: sends commands
- Command handlers → Notification sender: sends test
- Notification sender → Telegram API: sends message
- Command handlers → Telegram API: replies to commands
- Telegram API → Telegram user: delivers replies
- Telegram API → Configured chat: delivers notification