Fix small typo: Message.unpin was pinning

This commit is contained in:
Dan 2021-01-12 22:26:24 +01:00
parent 3c992e8f86
commit 4b3fc729ad

View File

@ -3295,7 +3295,7 @@ class Message(Object, Update):
Raises: Raises:
RPCError: In case of a Telegram RPC error. 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, chat_id=self.chat.id,
message_id=self.message_id message_id=self.message_id
) )