telegram_get_chat_history
Retrieve a Telegram chat's text history newest-first by numeric chat ID or @username, with options to set a limit and paginate before a message ID.
Instructions
Read newest-first text history by numeric ID or @username.
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_chat_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| chat_id | Yes | ||
| before_msg_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||