get_messages
Retrieve specific Telegram messages by ID, or fetch the surrounding conversation with context. Read-only; deleted or inaccessible IDs are simply absent.
Instructions
Fetch specific messages by id, or the conversation around one — use around with context to see what a search hit was replying to. Deleted or inaccessible ids are simply absent from the result. Read-only.
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": "<chat>"
},
"name": "get_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | Explicit message ids, at most 200. | |
| chat | Yes | @username, t.me link, or numeric id from list_chats. | |
| around | No | Centre the window on this message id instead. | |
| context | No | Messages either side of `around`. Default 5, max 50. |