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

Issue with using telegram backend #276

Open
Pigrenok opened this issue Sep 8, 2024 · 1 comment
Open

Issue with using telegram backend #276

Pigrenok opened this issue Sep 8, 2024 · 1 comment

Comments

@Pigrenok
Copy link

Pigrenok commented Sep 8, 2024

I installed ntfy with telegram backend:

pip install ntfy[telegram]

but when I do the first run, I get a strange errors:

ntfy -b telegram -v -l DEBUG send "Telegram configured for ntfy"
Follow the instructions to configure the Telegram backend.

/home/pigrenok/.pyenv/versions/3.10.9/lib/python3.10/site-packages/ntfy/backends/telegram.py:17: RuntimeWarning: coroutine 'configure' was never awaited
  configure(config_file)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
/home/pigrenok/.pyenv/versions/3.10.9/lib/python3.10/site-packages/ntfy/backends/telegram.py:18: RuntimeWarning: coroutine 'send' was never awaited
  send(messages=[message], conf=config_file)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback

At the same time telegram-send has configured and working fine.

What is the issue? Is it a bug or do I do something wrong?

Thanks.

@Strykar
Copy link

Strykar commented Sep 23, 2024

Yep, same issue here.

$ ntfy -b telegram send test 
Follow the instructions to configure the Telegram backend.

/usr/lib/python3.12/site-packages/ntfy/backends/telegram.py:17: RuntimeWarning: coroutine 'configure' was never awaited
  configure(config_file)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
/usr/lib/python3.12/site-packages/ntfy/backends/telegram.py:18: RuntimeWarning: coroutine 'send' was never awaited
  send(messages=[message], conf=config_file)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback

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

No branches or pull requests

2 participants