THE TEA · 开发者平台api.thetea.app
tea.support

AI 原生

中国茶, 在你的聊天里.

Each bot is a thin webhook over the Content API: send a tea name — get its full card; /random to discover. The user's locale picks the language (up to 72). One backend, one handler per platform.

消息流程解析

user: "Da Hong Pao"
  → GET /api/v2/search?q=Da Hong Pao        (resolve slug)
  → GET /api/v2/preview/da-hong-pao?lang=ru     (localized card · free)

平台

平台状态所需条件
Telegram已上线@TheTeaSupportBot — 私信茶名
Discord / Slack规划中应用令牌(自助获取)
LINE规划中Messaging API 通道
WhatsApp / Messenger规划中Meta 商务 + 应用审核
WeChat 公众号规划中已认证的中国企业

启动 Telegram 机器人

  1. Message @BotFather/newbot → copy the token.
  2. Deploy the worker (code in the repo, bots/telegram/):
cd bots/telegram
npx wrangler deploy
npx wrangler secret put BOT_TOKEN     # paste token
# point Telegram at the worker:
curl "https://api.telegram.org/bot<TOKEN>/setWebhook?url=https://thetea-telegram-bot.<acct>.workers.dev"

Then DM it: Biluochun, 大红袍, /random, /tea longjing. The other platforms reuse the same handler — the work is mostly account approval, not code.

其他接入方式

同一份数据既是一个 REST API、托管的 MCP 服务器、一台 AI 技能、一个 OpenAPI 规范,也是一个 llms.txt.