Read chat history
historyFetch recent messages from a Telegram chat, newest first, with previews unless full bodies are requested. Limit, paginate, and filter fields to reduce context.
Instructions
Messages from one chat, newest first. Bodies are truncated to a preview unless full is set, because a long chat returned whole is mostly wasted context.
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": {
"peer": "<peer>"
},
"name": "history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| full | No | Keep whole message bodies instead of previews. | |
| peer | Yes | A @username, numeric id, or 'me'. | |
| limit | No | How many messages. Default 20, max 100. | |
| fields | No | Comma separated fields to keep, e.g. 'id,text'. Dotted paths descend. Cuts response size. | |
| before_id | No | Only messages older than this id. Use next_cursor to page. |