mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +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
@ -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}
|
users = {i.id: i for i in r.users}
|
||||||
|
|
||||||
return types.List(types.ChatMember._parse(self, member, users, {}) for member in members)
|
return types.List(types.ChatMember._parse(self, member, users, {}) for member in members)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user