Read Telegram history by date or unread status
telegram_get_chat_historyRetrieve chat history newest-first, including attached media, without marking messages as read. Supports date range, unread-only filters, and pagination.
Instructions
Read newest-first history, including uncaptioned attachments, without marking read.
date_from is inclusive; date_to exclusive. Dates must include timezone, e.g. 2026-09-16T00:00:00+01:00. Return next_cursor for more; never claim an entire period was checked before pagination finishes. Text is bounded and marked when truncated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| cursor | No | ||
| chat_id | Yes | ||
| date_to | No | ||
| date_from | No | ||
| unread_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| next_cursor | Yes | ||
| scanned_count | Yes | ||
| trust_boundary | No |