mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 04:48:06 +00:00
Fix AttributeError raising when receiving ChatParticipantsForbidden
This commit is contained in:
parent
deea521c50
commit
062a6ce6dd
@ -60,7 +60,7 @@ class GetChatMember(BaseClient):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
members = r.full_chat.participants.participants
|
members = getattr(r.full_chat.participants, "participants", [])
|
||||||
users = {i.id: i for i in r.users}
|
users = {i.id: i for i in r.users}
|
||||||
|
|
||||||
for member in members:
|
for member in members:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user