Get Chat History
telegram_get_historyFetch message history from Telegram chats to preview text, sender details, dates, and media information before performing a full synchronization.
Instructions
Fetch messages from a Telegram chat. Returns message text, sender, date, and media info. Does NOT download media files — use telegram_sync_chat for that. Useful for previewing chat contents before a full sync.
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_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | Chat ID (get from telegram_list_chats or telegram_find_chat) | |
| limit | No | Maximum number of messages to return | |
| offset_id | No | Message ID to start from (for pagination, 0 = latest) |