unpin_all_forum_topic_messages()

async Client.unpin_all_forum_topic_messages()

Clear the list of pinned messages in a forum topic.

Usable by Users Bots
Parameters:
  • chat_id (int | str) – Unique identifier (int) or username (str) of the target chat.

  • topic_id (int) – Unique identifier (int) of the target forum topic.

Returns:

bool – True on success.

Example

await app.unpin_all_forum_topic_messages(chat_id, topic_id)