dschep / dschep/ntfy

Issue with using telegram backend

Open
#276 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
5k
Forks
216
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.