Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

Telegram Post Comments

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

Prix
$0.001USD / appel
Méthode
POST
Réponse
JSON
Paramètres
2 obligatoires · 1 facultatifs
100 appels gratuits / jourLes 100 premiers appels par jour sont gratuits (partagés par organisation) · Réinitialisation à 00:00 UTC. Ensuite, paiement à l'appel.

Bac à sable

Entrée
Channel username; post_id: Post ID; limit: number of comments (1-100).
Post ID
1100
Number of comments Plage : de 1 à 100.
SortieExemple
Réponseoutputs · 178 B · 11 lignes
[
  {
    "data": {
      "channel": "example",
      "comments": [],
      "mtproto_required": true,
      "note": "帖子评论需要在「设置」页启用并登录 MTProto 后端",
      "post_id": 1
    }
  }
]

Exemples

Sélectionnez un exemple pour charger ses entrées et son résultat dans le playground.

README de l'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.

Explorer plus

APIs associées

Toutes les APIs
APIPrixRéponse
Telegram$0.001 par appelJSON
Telegram$0.008 par appelJSON
Telegram$0.001 par appelJSON
Telegram$0.001 par appelJSON
Telegram$0.001 par appelJSON
Telegram$0.001 par appelJSON

Guides :Best Telegram API in 2026: Pricing Compared

Questions

FAQ

Comment utiliser l’API Telegram Post Comments ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/telegram/web/post-comments avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.

Combien coûte l’API Telegram Post Comments ?

$0.001 par appel. Chaque organisation bénéficie de 100 appels gratuits par jour UTC, partagés entre les API SandBase éligibles, y compris celle-ci ; au-delà, chaque appel est facturé à ce tarif depuis votre solde SandBase. Aucun abonnement.

Quels paramètres l’API Telegram Post Comments accepte-t-elle ?

Obligatoire : channel (string) et post_id (integer). Facultatif : limit (integer). Le tableau des paramètres et le Playground sur cette page listent tous les champs.

Que renvoie l’API Telegram Post Comments ?

Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.

Ai-je besoin d’un compte développeur ou d’une clé API Telegram ?

Non. Telegram Post Comments fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Telegram séparément.