diff --git a/pyrogram/client/ext/utils.py b/pyrogram/client/ext/utils.py index d236c69a..f87b9035 100644 --- a/pyrogram/client/ext/utils.py +++ b/pyrogram/client/ext/utils.py @@ -909,7 +909,7 @@ def parse_chat_full( if full_chat.pinned_msg_id: parsed_chat.pinned_message = client.get_messages( - int("-100" + str(full_chat.id)), + parsed_chat.id, full_chat.pinned_msg_id )