-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Telegram bot for notifications #12
Conversation
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.
Caution Review failedThe pull request is closed. WalkthroughThe changes introduced in this pull request enhance the application's notification capabilities by integrating Telegram notifications. Two new environment variables, Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Related to #5
Implement Telegram bot for real-time notifications and analysis info.
main.py
telegram
andtelegram.ext
modules.TELEGRAM_BOT_API_KEY
andTELEGRAM_CHAT_ID
to required environment variables.telegram.Bot
instance withTELEGRAM_BOT_API_KEY
.Notifier
initialization to includetelegram_bot
instance..env
TELEGRAM_BOT_API_KEY
andTELEGRAM_CHAT_ID
environment variables.utils/notifier.py
telegram
andtelegram.ext
modules.telegram_bot
andtelegram_chat_id
toNotifier
class initialization._send_telegram
method to send messages via Telegram bot.Summary by CodeRabbit
New Features
Bug Fixes
Documentation