Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

Telegram Post Comments

Docs da API
https://api.sandbase.ai/v1/api/telegram/web/post-comments

Returns comments from the linked discussion group of a specified Telegram channel post. Filters include the channel username, post ID, and an optional limit.

Preço
$0.001USD / chamada
Método
POST
Resposta
JSON
Parâmetros
2 obrigatórios · 1 opcionais
100 chamadas grátis / diaAs primeiras 100 chamadas por dia são grátis (compartilhadas por organização) · Reinicia às 00:00 UTC. Depois, pagamento por chamada.

Playground

Entrada
Channel username; post_id: Post ID; limit: number of comments (1-100).
Post ID
1100
Number of comments Intervalo: 1 a 100.
SaídaExemplo
Respostaoutputs · 178 B · 11 linhas
[
  {
    "data": {
      "channel": "example",
      "comments": [],
      "mtproto_required": true,
      "note": "帖子评论需要在「设置」页启用并登录 MTProto 后端",
      "post_id": 1
    }
  }
]

Exemplos

Selecione um exemplo para carregar as entradas e o resultado no playground.

README da API

Telegram Post Comments API

Returns comments from the linked discussion group of a Telegram channel post. It needs the channel username in channel and the numeric post_id. An optional limit sets how many comments to return.

Use cases

  • Read reader replies under a specific announcement post in a public channel.
  • Check whether a post has any discussion before you pull its full thread.
  • Collect comment text from a channel post for sentiment review.
  • Pair comment results with post data from the channel to compare a post with its replies.

Request

curl -X POST "https://api.sandbase.ai/v1/api/telegram/web/post-comments" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"channel": "telegram", "post_id": 450}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
channelstringYesChannel username; post_id: Post ID; limit: number of comments (1-100).
post_idintegerYesPost ID
limitintegerNoNumber of comments

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "channel": "telegram",
  "comments": [],
  "mtproto_required": true,
  "note": "帖子评论需要在「设置」页启用并登录 MTProto 后端",
  "post_id": 450
}

Response fields

FieldMeaning
channelThe channel username that the request used.
post_idThe ID of the post that the request asked about.
commentsList of comments on the post. In the sample response it is empty [].
mtproto_requiredWhen true, the call needs an MTProto backend to be enabled and logged in before it can return comments.
noteText message that explains why the result is empty. In the sample it says post comments need MTProto to be enabled and logged in on the settings page.

Notes

  • Use the channel username without the @ sign, for example telegram.
  • limit accepts whole numbers from 1 to 100.
  • Check mtproto_required first. If it is true, comments stays empty and note explains the reason.
  • Get post IDs from Telegram Channel Posts, or look up one post with Telegram Channel Post Details.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Explorar mais

APIs relacionadas

Todas as APIs
APIPreçoResposta
Telegram$0.001 por chamadaJSON
Telegram$0.008 por chamadaJSON
Telegram$0.001 por chamadaJSON
Telegram$0.001 por chamadaJSON
Telegram$0.001 por chamadaJSON
Telegram$0.001 por chamadaJSON

Guias:Best Telegram API in 2026: Pricing Compared

Perguntas

FAQ

Como eu uso a API Telegram Post Comments?

Envie uma solicitação POST para https://api.sandbase.ai/v1/api/telegram/web/post-comments com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.

Quanto custa a API Telegram Post Comments?

$0.001 por chamada. Cada organização recebe 100 chamadas grátis por dia UTC, compartilhadas entre as APIs elegíveis da SandBase, incluindo esta; depois disso, cada chamada é cobrada nesse valor do seu saldo SandBase. Não há assinatura.

Quais parâmetros a API Telegram Post Comments aceita?

Obrigatórios: channel (string) e post_id (integer). Opcionais: limit (integer). A tabela de Parâmetros e o Playground nesta página listam todos os campos.

O que a API Telegram Post Comments retorna?

Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.

Preciso de uma conta de desenvolvedor Telegram ou de uma chave de API?

Não. Telegram Post Comments funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Telegram separadamente.