Get Messages
get_messagesRead messages from a Telegram chat in oldest-to-newest order and filter by date range or sender, with paging to older messages.
Instructions
Read the latest messages of a chat, returned oldest to newest.
If older_messages_before_id is present, pass it as before_id to page back.
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": "<chat>"
},
"name": "get_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | Chat id, @username, t.me link, "me", or chat title | |
| limit | No | ||
| since | No | Only messages at or after this date/time | |
| until | No | Only messages before this date/time | |
| before_id | No | Only messages older than this id (pagination) | |
| from_user | No | Only messages from this sender |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||