---
title: "Telegram 频道接口：读公开频道消息 · SocialToAI"
canonical: https://socialtoai.app/zh/platforms/telegram/
updated: 2026-10-30
---

# Telegram API 数据接口

Telegram API（数据接口）可以读消息详情、账号资料和账号发布的消息，不用登录 Telegram 账号，也不用提供 Cookie。每次调用 2 积分（约 $0.004–$0.0067），失败不扣。Telegram 的内容不带作者粉丝数，这个字段返回 null。可以直接发 HTTP 请求，也可以通过 MCP 接到 AI 客户端里用。最近实测：2026-11-16。

- 页面：https://socialtoai.app/zh/platforms/telegram/
- 最近更新：2026-10-30
- 最近实测：2026-11-16

## 可用的动作

| 动作 | 返回什么 | 由什么参数选中 | 价格键 | 积分 | 参数和字段 |
| --- | --- | --- | --- | --- | --- |
| `detail` | 用编号或链接取一条消息：正文、作者、播放或阅读数和发布时间。 | — | `telegram.detail` | 2 | [Telegram 详情接口](https://socialtoai.app/zh/telegram-detail-api.md) |
| `user_profile` | 一个账号：名称、简介和粉丝数。 | — | `telegram.user_profile` | 2 | [Telegram 账号资料接口](https://socialtoai.app/zh/telegram-user-profile-api.md) |
| `user_posts` | 一个账号最近发布的消息。 | — | `telegram.user_posts` | 2 | [Telegram 账号作品接口](https://socialtoai.app/zh/telegram-user-posts-api.md) |

Telegram 不提供：搜索、热榜和评论。

和 X 比，Telegram 的消息少给作者粉丝数、点赞、评论数、收藏、转发和话题标签；账号资料少给关注数和作品数。

给 AI 读更省：3 个接口实测，同样的录制数据，平台原始 JSON 合计约 18,151 token，SocialToAI 返回约 5,456 token，少 69%（2026-11-06，方法见“测量方法”页）。

## 调用示例

```bash
curl https://socialtoai.app/v1/detail \
  -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "platform": "telegram",
    "id": "telegram/401"
  }'
```

## Telegram 给不了的字段

这些字段在对应的调用里始终是 null，并列在返回的 `unavailable` 里。

| 字段 | 哪些动作 |
| --- | --- |
| `title` | detail, user_posts |
| `author.id` | detail, user_posts |
| `author.verified` | detail, user_posts |
| `author.followers` | detail, user_posts |
| `metrics.likes` | detail, user_posts |
| `metrics.comments` | detail, user_posts |
| `metrics.shares` | detail, user_posts |
| `metrics.collects` | detail, user_posts |
| `metrics.reposts` | detail, user_posts |
| `hashtags` | detail, user_posts |
| `is_pinned` | detail, user_posts |
| `id` | user_profile |
| `following` | user_profile |
| `posts_count` | user_profile |

## 办成一件事多少钱

| 要做的事 | 怎么算 | 积分 | 约合 |
| --- | --- | --- | --- |
| 回填一个 Telegram 账号：200 条消息列表加 20 条全文 | 10 页列表 + 20 次全文 | 60 积分 | 约 ¥1.4（$0.20） |
| 每天盯 1 个 Telegram 账号，一个月最多 | 每次 10 积分 × 31 天 | 310 积分 | 约 ¥7.4（$1.03） |

按 $10 档算，买得越多单价越低。监控只在你开启时运行，随时可以暂停，没有订阅。

## 在 AI 里直接问

- 这个 Telegram 账号有多大？最近发了什么？ → user_profile, user_posts: 4 积分

- 查一下这个 Telegram 账号，告诉我它是谁。 → user_profile: 2 积分

- 比较这 3 个 Telegram 账号的粉丝数和发帖数。 → user_profile × 3: 6 积分

[Telegram MCP 服务器](https://socialtoai.app/zh/mcp/telegram.md)

## 能读 Telegram 的现成工具

- [账号动态](https://socialtoai.app/zh/tools/account-watch.md)：每个账号最近发了什么，哪条明显好于平时
- [达人档案](https://socialtoai.app/zh/tools/creator-card.md)：这个人在其他平台的账号、各自的数据，以及是同一人的把握
- [批量链接数据](https://socialtoai.app/zh/tools/batch-stats.md)：每条链接一行，给出现在的数字；失效的链接会标出来

## 官方 API

Telegram 的 API 向所有开发者开放：有 Telegram 账号即可在 my.telegram.org 申请 API ID。它是完整的客户端接口，支持频道（可设为公开）和消息搜索，使用须遵守 Telegram 的 API 服务条款。

来源：[Telegram 官方开发者文档](https://core.telegram.org/api/obtaining_api_id)，核对于 2026-10-30。

|  | 谁能用 | 费用 | 限制 | 来源 |
| --- | --- | --- | --- | --- |
| Bot API | 任何人：每个机器人创建时拿到自己的 token。 | 默认给用户发消息免费；开通付费群发后，超过每秒 30 条的部分每条 0.1 Stars。 | 给机器人用的 HTTP 接口。机器人只收得到它所在的聊天和频道的消息；发得太快会收到 429 错误。 | [core.telegram.org](https://core.telegram.org/bots/faq)，核对于 2026-10-30 |
| Telegram API（api_id 和 api_hash） | 有 Telegram 账号的人：登录 my.telegram.org，打开 API development tools 填表。每个手机号只能有一个 api_id。 | 官方页面没有写价格。 | 以用户账号登录的完整客户端接口。必须遵守 API 服务条款；用非官方客户端登录的账号会被自动观察，刷屏或刷浏览量会被永久封禁。 | [core.telegram.org](https://core.telegram.org/api/obtaining_api_id)，核对于 2026-10-30 |
| SocialToAI | 有 Key 就能用，不用你的 Telegram 账号，也不用审核。 | 每次 2 积分起（约 $0.0067），失败不扣。 | 只读公开可见的内容；一次调用最多 20 条。 | https://socialtoai.app/zh/pricing.md |

在这里读 1,000 条消息：约 50 次 `telegram.user_posts` 调用（每页通常 20 条），共 100 积分，按第一档约 $0.33。 [算一下要多少钱](https://socialtoai.app/zh/free-tools/api-cost-estimator.md)

[Telegram 官方 API 的申请条件和价格](https://socialtoai.app/zh/does-telegram-have-an-api.md)

- [Telegram MCP 服务器](https://socialtoai.app/zh/mcp/telegram.md)：让你的 AI 直接读 Telegram。
