Skip to content

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

@colossatr0n

Description

@colossatr0n

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 <module>
    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: rahiel/telegram-send#115

A workaround for this issue can be found here.

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