Posts from a channel
get_channel_postsRecent posts from a tracked Telegram channel, newest first, with text, view/forward/reply/reaction counts and reactions_map, the five most used reaction emoji with their counts. Accepts a channel slug or a numeric chat id, an optional text query to search the channel's posts, and an optional time range. Album posts are collapsed to one row, so a page may hold fewer than limit posts.
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": {
"channel": "<channel>"
},
"name": "get_channel_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | No | Only posts whose text contains this term (case-insensitive substring) | |
| since | No | Only posts at or after this ISO 8601 timestamp | |
| until | No | Only posts before this ISO 8601 timestamp | |
| channel | Yes | Channel slug (Telegram username, without the @) or numeric channel id | |
| message_type | No | Filter by message type: TEXT, PHOTO, VIDEO, AUDIO, DOCUMENT, UNSUPPORTED (case-insensitive) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| posts | Yes | ||
| channel | Yes | ||
| chat_id | Yes |