Post Comments
A post's comments, newest first.
GET
apiKeyheader
AuthorizationBearer <token>An API key from the dashboard: Authorization: Bearer sapi_….
url?stringThe message's link (https://t.me/durov/574).
id?stringThe message as its chat's name and number (durov/574), instead of url.
cursor?stringnextCursor of the previous page.
maxAge?integerHow old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.
Format
int64Range
0 <= valueThe answer.
application/json- response
A page of a list, as every list endpoint answers: { "data": [...], "pagination": … }.
data*array<>pagination*import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data, pagination } = await client.telegram.postComments({ url: "https://t.me/tginfo/4448" });Example Response
{ "data": [ { "id": "1838819", "postId": "tginfo/4448", "parentId": null, "text": "Интересно, сколько еще RCE эксплоитов для tg должно быть опубликовано (их уже в первые дни несколько), чтобы дали возможность эту олимпиадо-генераторную баг машину отключить хотя бы через дебаг?", "createdAt": "2026-11-13T15:39:11.000Z", "author": { "id": "JohnDoeInitiative", "username": "JohnDoeInitiative", "displayName": "John Doe", "avatarUrl": "https://cdn4.telesco.pe/file/hgt-r-snIdskOlR5DNuXmhp9Emoy97n-UOWKVAUj0OUdCFyosu_O_gEgqJ7gwHlwlV0Y2k4wedyKgvjRTW6h7WtTw3wsVgCZqmMcyeKPfsBNfhCoTS2wsayBSHxdtQq-qrCFVXh1xe566ZQA1K8Op00zqpdGV0YVwDR52E_2WVWRaqgMC8YyNICrMfeyIkBlslXZ438fJEW47hCWscsxlbSyRe9c3TXrC_BkCgkNuDpFSK1egWQcmYHJ5x2yiSgrYrjDhcgryKnmdFngKFyC5x-wmuIbtJ8GOBeu2KoShr4g9-YIHmM_94QFdavWtD2QtdkjWNaXvGnbJhliQ5JVcA.jpg", "verified": false, "url": "https://t.me/JohnDoeInitiative" }, "likes": null, "replies": null, "ext": { "url": "https://t.me/tginfo/4448?comment=1838819", "authorName": "John Doe", "media": [], "reactions": [], "edited": true } }, { "id": "1838795", "postId": "tginfo/4448", "parentId": null, "text": "Ну что, с первыми эксплоитами...", "createdAt": "2026-11-12T16:41:15.000Z", "author": { "id": "JohnDoeInitiative", "username": "JohnDoeInitiative", "displayName": "John Doe", "avatarUrl": "https://cdn4.telesco.pe/file/hgt-r-snIdskOlR5DNuXmhp9Emoy97n-UOWKVAUj0OUdCFyosu_O_gEgqJ7gwHlwlV0Y2k4wedyKgvjRTW6h7WtTw3wsVgCZqmMcyeKPfsBNfhCoTS2wsayBSHxdtQq-qrCFVXh1xe566ZQA1K8Op00zqpdGV0YVwDR52E_2WVWRaqgMC8YyNICrMfeyIkBlslXZ438fJEW47hCWscsxlbSyRe9c3TXrC_BkCgkNuDpFSK1egWQcmYHJ5x2yiSgrYrjDhcgryKnmdFngKFyC5x-wmuIbtJ8GOBeu2KoShr4g9-YIHmM_94QFdavWtD2QtdkjWNaXvGnbJhliQ5JVcA.jpg", "verified": false, "url": "https://t.me/JohnDoeInitiative" }, "likes": null, "replies": null, "ext": { "url": "https://t.me/tginfo/4448?comment=1838795", "authorName": "John Doe", "media": [], "reactions": [], "edited": false } } ], "pagination": { "nextCursor": null, "hasMore": false }}