Fix accessing non-existent attribute (#747)

This should solve the error `AttributeError: 'ChatParticipantsForbidden' object has no attribute 'participants'` and apply the commit 062a6ce6dd on this file, too.
This commit is contained in:
Jonathan 2021-08-28 15:40:10 +03:00 committed by GitHub
parent 4d933b80f9
commit 99e152a67c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,7 +112,7 @@ class GetChatMembers(Scaffold):
)
)
members = r.full_chat.participants.participants
members = getattr(r.full_chat.participants, "participants", [])
users = {i.id: i for i in r.users}
return types.List(types.ChatMember._parse(self, member, users, {}) for member in members)