Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Telegram Post Comments

เอกสาร 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.

ราคา
$0.001USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
2 จำเป็น · 1 ไม่บังคับ
100 คำขอฟรี / วันคำขอ 100 ครั้งแรกต่อวันฟรี (ใช้ร่วมกันภายในองค์กร) · รีเซ็ตเวลา 00:00 UTC จากนั้นคิดค่าบริการตามจำนวนคำขอ

Playground

อินพุต
Channel username; post_id: Post ID; limit: number of comments (1-100).
Post ID
1100
Number of comments ช่วง: 1 ถึง 100.
เอาต์พุตตัวอย่าง
การตอบกลับoutputs · 178 B · 11 บรรทัด
[
  {
    "data": {
      "channel": "example",
      "comments": [],
      "mtproto_required": true,
      "note": "帖子评论需要在「设置」页启用并登录 MTProto 后端",
      "post_id": 1
    }
  }
]

ตัวอย่าง

เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground

API README

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.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
Telegram$0.001 ต่อการเรียกJSON
Telegram$0.008 ต่อการเรียกJSON
Telegram$0.001 ต่อการเรียกJSON
Telegram$0.001 ต่อการเรียกJSON
Telegram$0.001 ต่อการเรียกJSON
Telegram$0.001 ต่อการเรียกJSON

คู่มือ:Best Telegram API in 2026: Pricing Compared

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ Telegram Post Comments API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/telegram/web/post-comments โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Telegram Post Comments API ราคาเท่าไร?

$0.001 ต่อครั้ง ทุกองค์กรจะได้รับคำขอฟรี 100 ครั้งต่อวัน UTC โดยใช้ร่วมกันใน SandBase APIs ที่เข้าเงื่อนไขรวมถึงรายการนี้ หลังจากนั้นแต่ละคำขอจะคิดค่าบริการตามราคานี้จากยอดคงเหลือ SandBase ของคุณ ไม่มีค่าสมาชิกรายเดือน

Telegram Post Comments API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: channel (string) และ post_id (integer). ตัวเลือก: limit (integer). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Telegram Post Comments API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Telegram ไหม?

ไม่จำเป็น Telegram Post Comments ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Telegram API แยกต่างหาก