Skip to content

Issue with using telegram backend #276

@Pigrenok

Description

@Pigrenok

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions