unpinAllForumTopicMessages
Clear all pinned messages in a forum topic by supplying the chat ID and message thread ID. Requires administrator rights with can_pin_messages permission; returns true when successful.
Instructions
Clear the list of pinned messages in a forum topic. The bot must be an administrator with can_pin_messages rights. Returns True on success.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chat_id": "<chat_id>",
"message_thread_id": "<message_thread_id>"
},
"name": "unpinAllForumTopicMessages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | Unique identifier for the target chat or username (in the format @supergroupusername) | |
| message_thread_id | Yes | Unique identifier for the target message thread of the forum topic |