unpinAllChatMessages
Remove all pinned messages from a chat. Requires admin rights in supergroups or channels.
Instructions
Clear the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator with can_pin_messages rights in a supergroup or can_edit_messages rights in a channel. Returns True on success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | Unique identifier for the target chat or username of the target channel (in the format @channelusername) |