unpin_all_general_forum_topic_messages()¶
- async Client.unpin_all_general_forum_topic_messages()¶
Clear the list of pinned messages in the ‘General’ 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.- Returns:
bool– On success, True is returned.
Example
await app.unpin_all_general_forum_topic_messages(chat_id)