diff --git a/pyrogram/types/messages_and_media/message.py b/pyrogram/types/messages_and_media/message.py index 3fd800b6..0ac26f23 100644 --- a/pyrogram/types/messages_and_media/message.py +++ b/pyrogram/types/messages_and_media/message.py @@ -3295,7 +3295,7 @@ class Message(Object, Update): Raises: RPCError: In case of a Telegram RPC error. """ - return await self._client.pin_chat_message( + return await self._client.unpin_chat_message( chat_id=self.chat.id, message_id=self.message_id )