get_messages
Retrieve chronological messages from a Telegram chat, with optional filters for date range, sender, topic, and pagination by message ID.
Instructions
Messages from one chat in chronological order. Dates are ISO 8601 (e.g. 2026-09-01 or 2026-09-01T12:00:00Z). Use before_id/after_id (message ids) to paginate. Format: #id [date] sender (tags)\ntext.
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>"
},
"name": "get_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| chat_id | Yes | ||
| to_date | No | ||
| after_id | No | ||
| topic_id | No | ||
| before_id | No | ||
| from_date | No | ||
| sender_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |