Closed snip3rok closed 3 years ago
When you're using raw API, Telethon can do nothing to fix it, as the issue comes from Telegram. This belongs better in Stack Overflow https://stackoverflow.com/q/68685599.
On the telegram website, this method is described as
messages.report # bd82b658 peer: InputPeer id: Vector
telethon.tl.functions.messages.ReportRequest also accepts a message .
Maybe this is the problem?
This is the kind of check that fixed the situation, I'm not a very experienced programmer and it took me 3 hours to do it
chat = await client.get_entity(int(g)) if chat.migrated_to: g = chat.migrated_to.channel_id
I get this error from time to time, it looks like my client sends to different groups
ChannelPrivateError: The channel specified is private and you lack permission to access it. Another reason may be that you were banned from it (caused by GetChannelsRequest)
Code that causes the issue
Traceback
This error from all entities type like User, InputPeerUser