API · Telegram
GET /telegram/channels/{handle}/posts
A page of a public channel’s posts (20, newest first), or posts matching words.
| |
|---|
| Request | GET /v1/telegram/channels/{handle}/posts |
| Operation id | telegram.channel.posts |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
A page of a public channel’s posts (20, newest first), or posts matching words.
| Name | Type | Required | Description |
|---|
handle | string | yes | Channel username, with or without the @, or a t.me link. Example: durov. |
| Name | Type | Required | Description |
|---|
q | string | no | Words to search for inside the channel. |
since | string | no | Only posts on or after this date (YYYY-MM-DD or ISO 8601). |
until | string | no | Only posts on or before this date (that whole UTC day for YYYY-MM-DD). |
after | string | no | Cursor: the previous page’s pagination.next_cursor. |
| Status | Meaning | Schema |
|---|
200 | A page of posts. | TelegramMessagesResponse |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | No public Telegram chat or post by that name. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Telegram is temporarily unavailable. Retryable; nothing was charged. | Error |
| Field | Type | Description |
|---|
chat | TelegramChatRef | |
messages | TelegramMessage[] | Newest first. |
pagination | TelegramPaginationolderPosts | |
Errors use one shape everywhere; see Errors for every code and what to do.