pin_message
Pin a message to a chat using its ID. Optionally set the target chat or disable notification.
Instructions
Pin a message in a chat. Bot must have pin permissions. If chat_id is omitted, targets the default log group.
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": {
"message_id": "<message_id>"
},
"name": "pin_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | No | Chat ID or @channel_username. Optional — defaults to log group | |
| message_id | Yes | ID of the message to pin | |
| disable_notification | No | Pin silently without notification |