mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Fix kicked members reporting "left" as status
This commit is contained in:
parent
b919ed8242
commit
c0a5b0a2c3
@ -181,8 +181,8 @@ class ChatMember(PyrogramType):
|
|||||||
chat_member = ChatMember(
|
chat_member = ChatMember(
|
||||||
user=user,
|
user=user,
|
||||||
status=(
|
status=(
|
||||||
"left" if member.left
|
"kicked" if rights.view_messages
|
||||||
else "kicked" if rights.view_messages
|
else "left" if member.left
|
||||||
else "restricted"
|
else "restricted"
|
||||||
),
|
),
|
||||||
date=member.date,
|
date=member.date,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user