mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 21:07:59 +00:00
Fix wrong users when joining by link
This commit is contained in:
parent
f47f903f7f
commit
e210b22aaa
@ -534,7 +534,7 @@ def parse_message_service(
|
|||||||
if isinstance(action, types.MessageActionChatAddUser):
|
if isinstance(action, types.MessageActionChatAddUser):
|
||||||
new_chat_members = [parse_user(users[i]) for i in action.users]
|
new_chat_members = [parse_user(users[i]) for i in action.users]
|
||||||
elif isinstance(action, types.MessageActionChatJoinedByLink):
|
elif isinstance(action, types.MessageActionChatJoinedByLink):
|
||||||
new_chat_members = [parse_user(users[action.inviter_id])]
|
new_chat_members = [parse_user(users[message.from_id])]
|
||||||
elif isinstance(action, types.MessageActionChatDeleteUser):
|
elif isinstance(action, types.MessageActionChatDeleteUser):
|
||||||
left_chat_member = parse_user(users[action.user_id])
|
left_chat_member = parse_user(users[action.user_id])
|
||||||
elif isinstance(action, types.MessageActionChatEditTitle):
|
elif isinstance(action, types.MessageActionChatEditTitle):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user