GroundsocialDocs

API · Telegram

GET /telegram/posts/comments

Comments on a Telegram channel post, 50 a page, from its discussion group.

RequestGET /v1/telegram/posts/comments
Operation idtelegram.post.comments
Cost1 credit, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

Comments on a Telegram channel post, 50 a page, from its discussion group.

Query parameters

NameTypeRequiredDescription
urlstringyesA public post link, https://t.me/<channel>/<id> (or <channel>/<id>). Example: https://t.me/durov/552.
sincestringnoOnly comments on or after this date.
untilstringnoOnly comments on or before this date.
afterstringnoCursor: the previous page’s pagination.next_cursor.

Responses

StatusMeaningSchema
200A page of comments.TelegramCommentsResponse
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404No public Telegram chat or post by that name.Error
429Too many requests. Wait for Retry-After seconds.Error
503Telegram is temporarily unavailable. Retryable; nothing was charged.Error

TelegramCommentsResponse fields

FieldTypeDescription
postobject
comment_countinteger | nullAll comments on the post.
commentsTelegramMessage[]Oldest first within the page; pages go back in time.
paginationTelegramPaginationolderComments

Errors use one shape everywhere; see Errors for every code and what to do.