unpin_message
Remove a pinned message from a chat. Specify the chat and message ID, or unpin the most recent pinned message by omitting the message ID.
Instructions
Unpin a message in a chat.
Args: chat_id: Chat ID or @channel_username (uses TELEGRAM_CHAT_ID if omitted) message_id: ID of message to unpin (optional, unpins most recent if not specified)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "unpin_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | No | ||
| message_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |