Read one day of a chat
get_messages_by_dateRetrieve all messages from a Telegram chat for a given calendar day, ordered oldest first and timezone-aware, to answer what was said on that day.
Instructions
Get every message of a Telegram chat sent on one calendar day, oldest first. The day is taken in the given timezone (default UTC); the archive stores dates in UTC. Walks the chat with the keyset cursor, so it is cheap even on chats with hundreds of thousands of messages. Use it to answer "what was said on "; use get_messages to page through a chat instead.
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_id": "<chat_id>",
"date": "<date>"
},
"name": "get_messages_by_date"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | The calendar day, YYYY-MM-DD (e.g. 2026-06-10). | |
| limit | No | Maximum messages to return, 1 to 5000 (default 1000). When the day has more, the newest are dropped and truncated is true. | |
| chat_id | Yes | The chat's ref, as list_chats or search_all_chats returns it (an opaque string; not the numeric Telegram id). | |
| timezone | No | IANA timezone the date is expressed in (e.g. Europe/Madrid). Default UTC. | |
| topic_id | No | Forum topic id from get_topics; keeps only that topic's messages. 1 is the General topic. Omit for the whole chat. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | The day asked for, YYYY-MM-DD. | |
| count | Yes | Messages returned. | |
| messages | Yes | The day's messages, oldest first, with the same fields as get_messages. | |
| timezone | Yes | IANA timezone the day was taken in. | |
| topic_id | No | The forum topic filter, when one was given. | |
| truncated | Yes | True when the day held more than limit messages and the newest were dropped. |