Read an exact Telegram message pin state
telegram_get_pin_infoCheck whether a specific Telegram message is pinned or retrieve the newest pinned message for a chat, using native message IDs without modifying the chat.
Instructions
Read exact native message IDs and pin state without changing Telegram.
With message_id, checks that exact message. Without it, returns only the newest pinned message, or null if Telegram reports none. This is not a complete pin list and does not identify who pinned a message. To list pins, paginate search_chat_messages with media_type=pinned. Never convert IDs.
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>"
},
"name": "telegram_get_pin_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | ||
| message_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | ||
| chat_id | Yes | ||
| is_pinned | Yes | ||
| message_id | Yes | ||
| can_be_pinned | Yes | ||
| trust_boundary | No |