产品发布、降价、安全通知和社区新闻,往往最先出现在某个公开的 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>工作原理
列出频道
你想关注的公开频道,可以是
durov这样的确切名称,也可以是https://t.me/telegram这样的链接。设置上限后运行工具
把它们连同起始日期发送到
POST /v1/tools/telegram-channel/run,并带上max_results。运行会从你的余额中预留它的最高费用,并以 JSON 返回消息。把日期往前推
保存上一次运行的日期,并把它作为下一次的起始日期,这样每次运行只会带回新的内容。
一次请求获取频道消息
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;轮询方法见运行工具。
每条消息包含什么
| 字段组 | 你会得到 |
|---|---|
| 消息 | 你列出的每个公开频道中的消息 |
| 时间窗口 | 仅限在 oldestMessageDate 当天或之后发布的消息 |
只覆盖公开频道,名称必须准确。你可以让模型在同一个任务里翻译、总结或分类这些消息。
实用配方
每天早上用昨天的日期运行你的供应商和社区频道列表,再把模型生成的摘要发送到 Slack。
关注他们的公告,标出价格变动或新版本发布。
关注覆盖你所在行业的公开频道,让模型把每条消息评为相关或噪音。
从一个较早的日期开始运行一次,建立一份可搜索的频道发布内容副本。
当某个说法传开时,拉取最先发布它的频道,对比日期。
更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"读取 channels.txt 中各 Telegram 频道最近一周的消息,最多 200 条,总结其中涉及价格变动或新版本发布的内容。把 max_results 设为 200。"
费用说明
按消息付费:启动运行时会预留它的最高费用,即每次调用费加上每条消息费乘以 max_results,结束后按实际返回的结果结算,预留的剩余部分退回你的余额。失败或超时的运行只为已交付的消息付费,在开始时就被拒绝的运行不收费。
每天读取 300 条消息,就按每天 300 条消息计费。没有订阅,也没有每月最低消费:最低充值 $5,工具和模型共用一个余额。上方卡片显示的是当前价格;价格页面列出了所有工具。