get_history
Fetch recent messages from a Telegram chat using its ID, username, or link. Set a limit to control the number of messages returned.
Instructions
Последние сообщения чата (chat = id/username/ссылка/название → resolve).
T6: iter_messages(entity, limit) → {id, date, sender, text}. read-only.
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_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | ||
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |