Pin Telegram Message
telegram_pin_chat_messagePin a specific message to the top of a Telegram chat. Requires the bot to have the 'can_pin_messages' admin permission in groups or channels.
Instructions
Pin a message at the top of a chat. Requires the bot to have pin permissions in groups/channels (not required for private chats with the bot).
Args:
chat_id (string | number): Target chat
message_id (number): ID of the message to pin
disable_notification (boolean): Pin silently (default: false)
Returns: Confirmation of pinning.
Error Handling:
"not enough rights" -> the bot needs the 'can_pin_messages' admin permission in this chat.
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": "telegram_pin_chat_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | Target chat. Use a numeric chat ID (e.g. 123456789 for a user, -1001234567890 for a supergroup/channel) or a public channel username with a leading '@' (e.g. '@my_channel'). If unknown, call telegram_get_updates after the user messages the bot to discover it. | |
| message_id | Yes | ID of the message to pin | |
| disable_notification | No | If true, pins silently without notifying chat members |