pin_message
Pin a message to the top of a chat. Specify the message ID, and optionally the chat ID and whether to send silently.
Instructions
Pin a message in a chat.
Args: message_id: ID of the message to pin chat_id: Chat ID or @channel_username (uses TELEGRAM_CHAT_ID if omitted) silent: Pin without notification (default False)
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 |
|---|---|---|---|
| message_id | Yes | ||
| chat_id | No | ||
| silent | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |