API · Telegram
GET /telegram/posts
One public Telegram post: text, views, reactions, media, forward and reply.
| Request | GET /v1/telegram/posts |
| Operation id | telegram.post.get |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
One public Telegram post: text, views, reactions, media, forward and reply.
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. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | The post. | TelegramMessageResponse |
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 |
TelegramMessageResponse fields
| Field | Type | Description |
|---|---|---|
message | TelegramMessage | A channel post or a comment, after the Bot API Message object. |
Errors use one shape everywhere; see Errors for every code and what to do.