-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Telegram bot for notifications (#12)
Related to #5 Implement Telegram bot for real-time notifications and analysis info. * **main.py** - Import `telegram` and `telegram.ext` modules. - Add `TELEGRAM_BOT_API_KEY` and `TELEGRAM_CHAT_ID` to required environment variables. - Initialize `telegram.Bot` instance with `TELEGRAM_BOT_API_KEY`. - Update `Notifier` initialization to include `telegram_bot` instance. * **.env** - Add `TELEGRAM_BOT_API_KEY` and `TELEGRAM_CHAT_ID` environment variables. * **utils/notifier.py** - Import `telegram` and `telegram.ext` modules. - Add `telegram_bot` and `telegram_chat_id` to `Notifier` class initialization. - Implement `_send_telegram` method to send messages via Telegram bot.
- Loading branch information
Showing
3 changed files
with
23 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters