Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Telegram Post Comments

Tài liệu 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.

Giá
$0.001USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
2 bắt buộc · 1 tùy chọn
100 lượt gọi miễn phí / ngày100 lượt gọi đầu tiên mỗi ngày miễn phí (chia sẻ theo tổ chức) · Đặt lại lúc 00:00 UTC. Sau đó tính phí theo mỗi lượt gọi.

Phòng thử nghiệm

Đầu vào
Channel username; post_id: Post ID; limit: number of comments (1-100).
Post ID
1100
Number of comments Phạm vi: 1 đến 100.
Đầu raVí dụ
Phản hồioutputs · 178 B · 11 dòng
[
  {
    "data": {
      "channel": "example",
      "comments": [],
      "mtproto_required": true,
      "note": "帖子评论需要在「设置」页启用并登录 MTProto 后端",
      "post_id": 1
    }
  }
]

Ví dụ

Chọn một ví dụ để nạp đầu vào và kết quả của nó vào 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.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Telegram$0.001 mỗi lần gọiJSON
Telegram$0.008 mỗi lần gọiJSON
Telegram$0.001 mỗi lần gọiJSON
Telegram$0.001 mỗi lần gọiJSON
Telegram$0.001 mỗi lần gọiJSON
Telegram$0.001 mỗi lần gọiJSON

Hướng dẫn:Best Telegram API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API Telegram Post Comments?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/telegram/web/post-comments với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Telegram Post Comments có giá bao nhiêu?

$0.001 mỗi lần gọi. Mỗi tổ chức được 100 lần gọi miễn phí mỗi ngày UTC, dùng chung cho các API SandBase đủ điều kiện, bao gồm API này; sau đó mỗi lần gọi sẽ được tính theo mức giá này từ số dư SandBase của bạn. Không có gói đăng ký.

API Telegram Post Comments chấp nhận những tham số nào?

Bắt buộc: channel (string) và post_id (integer). Tùy chọn: limit (integer). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Telegram Post Comments trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của Telegram không?

Không. Telegram Post Comments chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Telegram.