使用场景

监控公开 Telegram 频道的公告与新闻

以 JSON 获取公开 Telegram 频道自某个日期以来发布的消息,无需打开应用,就能关注公告、版本发布和市场动态。

预付费,无订阅REST 或 MCP一个密钥搞定模型、数据和智能体
Telegramlovelyjsonitems[0]"channel": "durov""date": "2026-09-14""message": "New update is live fo…"oldest_message_date": "2026-09-01"

产品发布、降价、安全通知和社区新闻,往往最先出现在某个公开的 Telegram 频道里,却淹没在一条你不会每天翻看的信息流中。Lovely Router 替你读取频道。发送频道名称和起始日期,每条消息返回一个 JSON 对象,按消息数从预付费余额中计费。

交给你的 AI 智能体

把这段提示词复制到 Claude Code、Cursor、Codex 或任何编程智能体中。它会告诉智能体文档在哪里,以及如何使用你的 API 密钥。

监控公开 Telegram 频道的公告与新闻. Use the Lovely Router data tools: each returns JSON and is billed per result.

- Docs (read first): https://lovelyrouter.com/docs/tools/find.md and https://lovelyrouter.com/docs/tools/run.md
- Plan first: POST https://lovelyrouter.com/v1/tools/suggest with `{"task": "<my task in plain words>"}` (free). It returns the tools to run in order, each with an example `input`, the `input_required` fields, an estimated cost and a ready-made `run` request. Replace the example values with my task's; if a field is unclear, read the tool with GET https://lovelyrouter.com/v1/tools/<id>. To browse instead, POST https://lovelyrouter.com/v1/tools/discover searches the catalog.
- Show me the plan and its estimated cost (`total_est_cost_usd`) before running anything large.
- Run: POST https://lovelyrouter.com/v1/tools/<id>/run with `{"input": {...}, "max_results": N}`. A 200 has the finished run with `items`; a 202 means it is still running, so poll the `poll` path until `status` is `succeeded`, `failed`, `timed_out` or `stopped`.
- Only delivered results are billed. Keep max_results small on the first run, check the output, then scale up.
- If you support MCP, connect https://lovelyrouter.com/mcp instead (Streamable HTTP, same key; https://lovelyrouter.com/docs/tools/mcp.md) and use suggest_tools, get_tool and run_tool.
- Auth: read my API key from the LOVELY_API_KEY environment variable and send it as `Authorization: Bearer $LOVELY_API_KEY`. Never print or commit the key. If it is not set, ask me to create one at https://lovelyrouter.com/app/keys.
- Billing is prepaid: every call is charged to my balance, so test with a small request before running anything large.
- Every docs page is plain Markdown; the full index is https://lovelyrouter.com/llms.txt.

My task: <the inputs (links, keywords or accounts) and how many results you need>
01

工作原理

010203
  1. 列出频道

    你想关注的公开频道,可以是 durov 这样的确切名称,也可以是 https://t.me/telegram 这样的链接。

  2. 设置上限后运行工具

    把它们连同起始日期发送到 POST /v1/tools/telegram-channel/run,并带上 max_results。运行会从你的余额中预留它的最高费用,并以 JSON 返回消息。

  3. 把日期往前推

    保存上一次运行的日期,并把它作为下一次的起始日期,这样每次运行只会带回新的内容。

02

一次请求获取频道消息

Telegram 频道消息获取在 profiles 中接受频道,在 oldestMessageDate 中接受起始日期,格式为 YYYY-MM-DD。两者都是必填项:

curl https://lovelyrouter.com/v1/tools/telegram-channel/run \
  -H "Authorization: Bearer $LOVELY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "input": {
        "profiles": [
          "durov"
        ],
        "oldestMessageDate": "2026-09-01"
      },
    "max_results": 50
  }'

只会返回在该日期当天或之后发布的消息,max_results 限制返回的条数。运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。

03

每条消息包含什么

字段组你会得到
消息你列出的每个公开频道中的消息
时间窗口仅限在 oldestMessageDate 当天或之后发布的消息

只覆盖公开频道,名称必须准确。你可以让模型在同一个任务里翻译、总结或分类这些消息。

04

实用配方

每日公告摘要。

每天早上用昨天的日期运行你的供应商和社区频道列表,再把模型生成的摘要发送到 Slack。

盯住竞争对手的频道。

关注他们的公告,标出价格变动或新版本发布。

追踪一个市场。

关注覆盖你所在行业的公开频道,让模型把每条消息评为相关或噪音。

归档一个频道。

从一个较早的日期开始运行一次,建立一份可搜索的频道发布内容副本。

交叉核实传闻。

当某个说法传开时,拉取最先发布它的频道,对比日期。

更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"读取 channels.txt 中各 Telegram 频道最近一周的消息,最多 200 条,总结其中涉及价格变动或新版本发布的内容。把 max_results 设为 200。"

06

费用说明

按消息付费:启动运行时会预留它的最高费用,即每次调用费加上每条消息费乘以 max_results,结束后按实际返回的结果结算,预留的剩余部分退回你的余额。失败或超时的运行只为已交付的消息付费,在开始时就被拒绝的运行不收费。

每天读取 300 条消息,就按每天 300 条消息计费。没有订阅,也没有每月最低消费:最低充值 $5,工具和模型共用一个余额。上方卡片显示的是当前价格;价格页面列出了所有工具。

07

常见问题

?
可以读取哪些频道?+

公开频道,通过确切名称或链接指定。不覆盖私密群组。

怎样只获取新消息?+

把 oldestMessageDate 设为你上一次运行的日期。每次运行都必须设置它。

一次运行最多能返回多少条消息?+

最多 500 条,用 max_results 设置。

这样做合规吗?+

只读取公开频道的内容。请依法使用他人的数据,包括遵守你所在地的隐私和反垃圾信息规定,责任由你自己承担。

需要订阅吗?+

不需要。你向预付费余额充值,每次运行从中扣费。失败的运行只为已交付的结果付费,不会自动续费。

要关注的不止 Telegram?请看社交聆听、中国社交媒体数据和工具目录。

一个预付费密钥,搞定模型、数据和智能体

无需订阅。充值后按需使用,每笔费用都能在日志中查看。