tg_read_messages
Read Telegram chat, group, or channel messages oldest first, filter by date, range, sender, or text, and optionally transcribe voice, attach photos, or mark the chat as read.
Instructions
Read messages of any chat, group or channel, oldest first.
date: one day, "today", "yesterday", "2026-11-24" or "24.11.2026" (in TG_TIMEZONE).
since / until: a range instead of date, a day or "2026-11-24 14:00".
limit: up to 500 per call. To read the whole history, repeat the call with before_id set to the
smallest id from the previous page until no more pages are reported. after_id returns only newer messages.
search: only messages containing this text. from_user: only messages from this person.
transcribe_voice: voice and round video messages come with a text transcript.
include_images: photos are attached as images (at most 10 per call).
mark_read: mark the chat as read up to the newest returned message.
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": "tg_read_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | ||
| date | No | ||
| limit | No | ||
| since | No | ||
| until | No | ||
| search | No | ||
| after_id | No | ||
| before_id | No | ||
| from_user | No | ||
| mark_read | No | ||
| include_images | No | ||
| transcribe_voice | No |