mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
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:
parent
4d933b80f9
commit
99e152a67c
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue