Message.unpin()

Message.unpin()

Bound method unpin of Message.

Use as a shortcut for:

await client.unpin_chat_message(
    chat_id=message.chat.id,
    message_id=message_id
)

Example

await message.unpin()
Returns:

True on success.

Raises:

RPCError – In case of a Telegram RPC error.