telegram_get_messages
Retrieve messages from a Telegram chat in reverse chronological order without marking them read. Supports limiting results and starting from a specific message.
Instructions
Read messages from one allowed chat, newest first, without marking them read.
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": "telegram_get_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| chat_id | Yes | ||
| before_message_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |