API · Telegram
GET /telegram/posts/comments
Comments on a Telegram channel post, 50 a page, from its discussion group.
| Request | GET /v1/telegram/posts/comments |
| Operation id | telegram.post.comments |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Comments on a Telegram channel post, 50 a page, from its discussion group.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | string | yes | A public post link, https://t.me/<channel>/<id> (or <channel>/<id>). Example: https://t.me/durov/552. |
since | string | no | Only comments on or after this date. |
until | string | no | Only comments on or before this date. |
after | string | no | Cursor: the previous page’s pagination.next_cursor. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | A page of comments. | TelegramCommentsResponse |
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 |
TelegramCommentsResponse fields
| Field | Type | Description |
|---|---|---|
post | object | |
comment_count | integer | null | All comments on the post. |
comments | TelegramMessage[] | Oldest first within the page; pages go back in time. |
pagination | TelegramPaginationolderComments |
Errors use one shape everywhere; see Errors for every code and what to do.