Fix AttributeError raising when receiving ChatParticipantsForbidden

This commit is contained in:
Dan 2020-02-03 14:51:53 +01:00
parent deea521c50
commit 062a6ce6dd

View File

@ -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: