Pin Message to Top of Chat
pin_messagePin important messages to the top of a chat or supergroup for high visibility. Requires admin permissions and send access; use unpin_message to remove.
Instructions
Pin a message to the top of a chat or supergroup for high visibility. Mutation operation requiring TELEGRAM_SEND_ENABLED=true and admin permissions in supergroups/channels. To unpin, use unpin_message.
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_id": "<message_id>"
},
"name": "pin_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Optional account label for multi-account environments. If omitted in single-mode, the default account is used. In multi-mode without an account, read-only tools fan out across all configured accounts. | |
| chat_id | Yes | Target Telegram chat, group, supergroup, channel, or user identifier. Accepts numeric chat ID (e.g. -1001234567890 or 123456789), username (e.g. '@channel'), or phone number. | |
| message_id | Yes | Unique integer ID of the target message within the specified chat. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |