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 Business + 應用程式審核
微信公眾號規劃中經認證的中國企業

啟動 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。您的方案和用量: 帳戶.