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.
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 |