Skip to content
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 logging to Telegram #35

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Add logging to Telegram #35

wants to merge 4 commits into from

Conversation

AbelLykens
Copy link
Contributor

  1. Create a bot using https://t.me/botfather , enter the key in config
  2. Figure out your own Telegram user ID, you can ask https://t.me/lightningwatchbot for a /referral , the code is your user ID, add to config
  3. If app.py sees a bot key is set, it will add a handler to the existing logging module

It works well here. There are still a bit too many messages, so some are missed. We might have to lower some more message priorities to DEBUG to lower Telegram sending. Currently INFO and higher is sent.

[telegram]
# Create a bot using @botfather (/newbot). Give key below:
bot_key = 
# Your own user ID to send messages to ( @lightningwatchbot 
# can give you this if you type /referral )
user_id = 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant