dschep / dschep/ntfy

AttributeError: module 'telegram' has no attribute 'notify'

Open
#260 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
5k
Forks
216
PR merge metrics
No merged PRs in 30d

Description

This issue is for documentation purposes and for others running into this same error.

When running `ntfy -b telegram send "test message"` I get the following error:

```
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/ntfy/__init__.py", line 61, in notify
notify_ret = notifier.notify(
AttributeError: module 'telegram' has no attribute 'notify'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/bin/ntfy", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.10/site-packages/ntfy/cli.py", line 362, in main
return notify(
File "/usr/local/lib/python3.10/site-packages/ntfy/__init__.py", line 76, in notify
args, _, _, defaults = getargspec(notifier.notify)
AttributeError: module 'telegram' has no attribute 'notify'
```

This doesn't have anything to do with `ntfy` but is actually due to a bug in the `telegram-send` repo for version 20.0.

The issue can be found here: https://github.com/rahiel/telegram-send/issues/115

A workaround for this issue can be found [here](https://github.com/rahiel/telegram-send/issues/115#issuecomment-1368728425).

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.