ntfy icon indicating copy to clipboard operation
ntfy copied to clipboard

Issue with using telegram backend

Open Pigrenok opened this issue 1 year ago • 1 comments

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.

Pigrenok avatar Sep 08 '24 23:09 Pigrenok

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

Strykar avatar Sep 23 '24 09:09 Strykar