List Filtered Chat Messages
list_messagesRetrieve messages from a Telegram chat with optional filters for sender, date range, or topic. Use when filtering chat history instead of simple pagination or keyword search.
Instructions
Retrieve messages from a chat matching optional filters such as sender, date range, or topic. Use when filtering chat history. For simple sequential pagination, use get_messages. For text keyword searching, use search_messages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of items or records to retrieve (integer between 1 and 100). | |
| account | No | Optional account label for multi-account environments. If omitted in single-mode, the default account is used. In multi-mode without an account, read-only tools fan out across all configured accounts. | |
| chat_id | Yes | Target Telegram chat, group, supergroup, channel, or user identifier. Accepts numeric chat ID (e.g. -1001234567890 or 123456789), username (e.g. '@channel'), or phone number. | |
| to_date | No | End date filter for message search in ISO 8601 format (e.g. '2026-01-31T23:59:59Z'). | |
| from_date | No | Start date filter for message search in ISO 8601 format (e.g. '2026-01-01T00:00:00Z'). | |
| search_query | No | Text query string used to search and filter contacts, chats, or messages. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |