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}
|
||||
|
||||
for member in members:
|
||||
|
Loading…
Reference in New Issue
Block a user