pin_message
Pin or unpin a specific message in a target chat, with an option to notify participants when pinning. Use it to manage pinned messages and control whether chat members receive a notification.
Instructions
Pin or unpin a message in a destination chat, optionally notifying participants.
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": "<chat>",
"message_id": "<message_id>"
},
"name": "pin_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pin | No | `true` to pin, `false` to unpin (default `true`). | |
| chat | Yes | Target chat reference. | |
| notify | No | Notify chat members when pinning (default `false`). | |
| message_id | Yes | Message ID to pin or unpin. |