Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

Telegram Post Comments

Documentazione 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.

Prezzo
$0.001USD / chiamata
Metodo
POST
Risposta
JSON
Parametri
2 obbligatori · 1 opzionali
100 chiamate gratuite / giornoPrime 100 chiamate al giorno gratuite (condivise per organizzazione) · Si azzera alle 00:00 UTC. Dopo, pagamento per chiamata.

Playground

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

Esempi

Seleziona un esempio per caricare i suoi input e il risultato nel playground.

README 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.

Esplora altro

API correlate

Tutte le API
APIPrezzoRisposta
Telegram$0.001 per chiamataJSON
Telegram$0.008 per chiamataJSON
Telegram$0.001 per chiamataJSON
Telegram$0.001 per chiamataJSON
Telegram$0.001 per chiamataJSON
Telegram$0.001 per chiamataJSON

Guide:Best Telegram API in 2026: Pricing Compared

Domande

FAQ

Come uso l'API Telegram Post Comments?

Invia una richiesta POST a https://api.sandbase.ai/v1/api/telegram/web/post-comments con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.

Quanto costa l'API Telegram Post Comments?

$0.001 per chiamata. Ogni organizzazione riceve 100 chiamate gratuite al giorno UTC, condivise tra le API SandBase idonee, inclusa questa; dopo, ogni chiamata viene addebitata a questo prezzo dal tuo saldo SandBase. Non c'è alcun abbonamento.

Quali parametri accetta l'API Telegram Post Comments?

Richiesti: channel (string) e post_id (integer). Facoltativi: limit (integer). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.

Cosa restituisce l'API Telegram Post Comments?

Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.

Mi serve un account sviluppatore o una chiave API Telegram?

No. Telegram Post Comments funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Telegram.