export_history
Export a selected Telegram chat's original history to JSONL or Markdown, with optional date filters, resumable checkpoints, and an option to save a permanent archive copy.
Instructions
Export one selected chat's original history as JSONL or Markdown.
Start with chat_ref and optional dates (lower inclusive, upper exclusive),
then continue with checkpoint only and the desired format. Upper date and ID
are frozen; each part has at most 1000 records/20 MiB within RPC/time budgets.
Read the returned resource explicitly before its 15-minute expiry. Files are
local to the server, temporary, and include source references and full text;
attachments are metadata only. Protected/expiring records are omitted explicitly.
complete means the range was scanned; omitted_count and issues still matter.
A non-null next_checkpoint survives restart; an empty part can need continuation.
On temporary errors continue the returned token after any retry delay. On tool
errors the original token remains usable. save=true retains a permanent archive copy.
No snapshot consistency across Telegram edits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | ||
| format | No | jsonl | |
| date_to | No | ||
| chat_ref | No | ||
| date_from | No | ||
| checkpoint | No |