read_messages
Fetch recent messages or posts from a Telegram channel, group, or private chat; use offset_id to page to older messages and max_chars to limit text length.
Instructions
Read the latest messages or posts of a channel, group or private chat, newest first. chat: @username, t.me link or numeric id from list_chats. For older messages pass offset_id = the smallest id you already got. Text longer than max_chars is cut, use 0 for full text
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": "read_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | ||
| limit | No | ||
| max_chars | No | ||
| offset_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||