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

Telegram notifications broken? #178

Open
strowi opened this issue Jul 17, 2022 · 1 comment
Open

Telegram notifications broken? #178

strowi opened this issue Jul 17, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@strowi
Copy link

strowi commented Jul 17, 2022

Hi,

Describe the bug
Should the telegram notifications be working currently with the latest master? I followed the instructions, running the bot in Docker, but not getting any telegram related logs or notifications.

To Reproduce
Steps to reproduce the behavior:

~> cat config.yml
...
  TELEGRAM:
    # set to True to enable telegram notifications
    ENABLED: True
    # Disable / Enable specific notifications
    NOTIFICATIONS:
      STARTUP: True 
...
~>
cat auth.yml
  telegram_token: "yxz"
  telegram_chat_id: "123"
...

Expected behavior
Telegram notifications showing up / Log Entries in INFO or DEBUG mode

regards,
strowi

@strowi strowi added the bug Something isn't working label Jul 17, 2022
@YVINEE
Copy link

YVINEE commented Jan 28, 2023

Hi,
There is a bug in the file send_telegram.py.
Replace:
requests.get( f"""https://api.telegram.org/bot{bot_token}/sendMessage ?chat_id={bot_chatID} &parse_mode=Markdown &text={record.message}""" )
By:
url = f"""https://api.telegram.org/bot{bot_token}/sendMessage?chat_id={bot_chatID}&parse_mode=Markdown&text={record.message}""" requests.get(url)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants