Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Client.iter_chat_members() errors out on ChatParticipantsForbidden #498
Comments
|
The issue is you are unable to get the members list in that chat, not sure what pyrogram should do in that case, re-raise another error? |
|
Ah, that's what it's about, I see. Sure, If I was confused then certainly I'm not alone --> |
|
The issue is that pyrogram throws AtributeError which is bad design. To catch this exception user have to |
|
Of course, the reason that exception was raised is simply because Pyrogram didn't know a better way to handle it. I'd appreciate an example with steps to reproduce the issue. |


Using a straightforward
client.iter_chat_members(...)may raise the following stack trace: