Get Telegram Chat
tg_get_chatRead the most recent messages for one Telegram account, oldest first — or, with chat, one conversation. Use this for context before replying; use tg_list_messages to page through everything new. Narrow with since/until (until is exclusive). For a WhatsApp number use wa_get_chat.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "tg_get_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | No | read ONE conversation — the chat's Telegram id (<id>@telegram); omit for the account's most recent messages across all chats | |
| limit | No | how many recent messages, 1-200; defaults to 50 | |
| since | No | only messages sent at or after this time: RFC3339 with a zone, or a date; omit for no lower bound | |
| until | No | only messages sent BEFORE this time — exclusive; same formats as since; omit for no upper bound | |
| account_id | No | the Telegram account whose conversation to read, from wa_list_accounts; omit it when the workspace has only one Telegram account | |
| include_media_urls | No | also return attachment.media_url on each available attachment — a time-limited (1h) signed URL to GET the bytes with plain HTTP instead of a tg_get_media call; off by default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | the account this conversation was read from | |
| refusal | No | present only when the request was declined | |
| has_more | No | true when older messages match than were returned; page them with wa_list_messages(account_id, chat, since, until, include_history=true) | |
| messages | Yes | recent messages for this account, oldest first | |
| account_notices | No | present when a number this read covers is not working: new messages are not arriving on it; says why and what to do |