From e210b22aaac41d9cb968d62dc41db1bd0944639f Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 16 Apr 2018 12:43:02 +0200 Subject: [PATCH] Fix wrong users when joining by link --- pyrogram/client/message_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/client/message_parser.py b/pyrogram/client/message_parser.py index 4433e6c0..5669ef0c 100644 --- a/pyrogram/client/message_parser.py +++ b/pyrogram/client/message_parser.py @@ -534,7 +534,7 @@ def parse_message_service( if isinstance(action, types.MessageActionChatAddUser): new_chat_members = [parse_user(users[i]) for i in action.users] 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): left_chat_member = parse_user(users[action.user_id]) elif isinstance(action, types.MessageActionChatEditTitle):