AttributeError: module 'telegram' has no attribute 'notify'
- 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.