Skip to content

Commit 062a6ce

Browse files
committed
Fix AttributeError raising when receiving ChatParticipantsForbidden
1 parent deea521 commit 062a6ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyrogram/client/methods/chats/get_chat_member.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def get_chat_member(
6060
)
6161
)
6262

63-
members = r.full_chat.participants.participants
63+
members = getattr(r.full_chat.participants, "participants", [])
6464
users = {i.id: i for i in r.users}
6565

6666
for member in members:

0 commit comments

Comments
 (0)