unpin_all_forum_topic_messages()¶
- async Client.unpin_all_forum_topic_messages()¶
Clear the list of pinned messages in a forum topic. In the case of a supergroup chat the bot must be an administrator in the chat for this to work and must have the can_pin_messages administrator right in the supergroup.
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– On success, True is returned.
Example
await app.unpin_all_forum_topic_messages(chat_id, topic_id)