Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facing AttributeError #46

Closed
ThatDevCoder opened this issue Sep 19, 2022 · 1 comment
Closed

Facing AttributeError #46

ThatDevCoder opened this issue Sep 19, 2022 · 1 comment

Comments

@ThatDevCoder
Copy link

Hi, I'm currently testing forwards from channel to channel,
Whenever I try to test it by sending a message I get this error

`INFO:main:Channel mirroring has started with config:
Mirror mapping:
-1001748000891 -> -1001621765064
Message deleting: Enabled
Message editing: Enabled
Installed message filter: ForwardFormatFilter
Using database: InMemoryDatabase

ERROR:telethon.client.updates:Unhandled exception on on_new_message
Traceback (most recent call last):
File "/home/xyz/.local/lib/python3.9/site-packages/telethon/client/updates.py", line 454, in _dispatch_update
await callback(event)
File "/home/xyz/Desktop/telemirror/telemirror/mirroring.py", line 24, in on_new_message
if event.message.chat.noforwards:
AttributeError: 'Channel' object has no attribute 'noforwards'`

@khoben
Copy link
Owner

khoben commented Sep 20, 2022

@ThatDevCoder Have you solved the problem?
Chat or Channel objects should always have the noforwards flag, if there was a special case here please describe it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants