mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-25 19:38:31 +00:00
Fix get_chat_member not working when passing "me" in basic groups
This commit is contained in:
parent
64775f5209
commit
a4ea3f768c
@ -55,7 +55,7 @@ class GetChatMember(BaseClient):
|
||||
)
|
||||
|
||||
for member in pyrogram.ChatMembers._parse(self, full_chat).chat_members:
|
||||
if member.user.id == user_id.user_id:
|
||||
if member.user.is_self:
|
||||
return member
|
||||
else:
|
||||
raise errors.UserNotParticipant
|
||||
|
Loading…
x
Reference in New Issue
Block a user