Read pinned messages
get_pinned_messagesRetrieve all pinned messages from a Telegram chat, newest first, to quickly find rules, addresses, or key links stored there.
Instructions
Get every pinned message of a Telegram chat, newest first, with the same fields as get_messages. Pinned messages often hold a group's rules, addresses or key links.
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": "get_pinned_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | The chat's ref, as list_chats or search_all_chats returns it (an opaque string; not the numeric Telegram id). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| messages | No | Archived messages as the viewer returns them: id, date (naive UTC), text, sender fields, reply_to_msg_id, media and more. |