read_messages
Retrieve recent messages from a Telegram chat, scoping to a specific forum topic or filtering by user, date, and number of results.
Instructions
Get recent messages from a chat. For forum supergroups, pass topic_id to scope to a single topic (use 1 for the General topic).
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": "read_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| chat_id | Yes | ||
| topic_id | No | Forum topic root message ID. Use 1 for General. | |
| from_user | No | ||
| offset_date | No | ISO date to read before |