Set channel post pin
telegram_set_post_pinnedPin or unpin one specific channel post. Confirm the channel, post and desired pinned state first. Never unpins all posts. Requires owner or administrator access and Edit messages permission for both you and the bot. Use an already connected Session where supported; preserve source, coverage and actual errors. Do not suggest connecting or reconnecting Session unless the user explicitly asks for Session setup. Never switch sender automatically or request login codes/passwords in 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": {
"channel_id": "<channel_id>",
"request_id": "<request_id>",
"confirmed": "<confirmed>",
"message_id": "<message_id>",
"pinned": "<pinned>"
},
"name": "telegram_set_post_pinned"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pinned | Yes | ||
| confirmed | Yes | True only after showing the channel, exact content/button destinations or target post/action and receiving explicit user confirmation. | |
| channel_id | Yes | Channel chat_id returned by telegram_list_chats or telegram_find_chat, connected through /channels. | |
| message_id | Yes | Post message_id from this channel, not an ID from its discussion group. | |
| request_id | Yes | Unique key for this user-approved action. Reuse the same key for retries; never generate a new one to retry uncertain delivery. |