Read chat history
historyRetrieve message history from a Telegram chat, with options to limit results, filter fields, and paginate using before_id.
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.
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. |