get_messages
Fetch recent messages from a specific Telegram chat using its chat ID. Use 'me' to access your Saved Messages, with optional limit and message ID offset.
Instructions
Get recent messages from a specific chat. Use "me" as chatId for your own Saved Messages.
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": {
"chatId": "<chatId>"
},
"name": "get_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of messages to return (default: 20, max: 100) | |
| chatId | Yes | The chat ID to get messages from, or "me" for your Saved Messages | |
| fromMessageId | No | Get messages starting from this message ID |