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 同應用程式審查 |
| WeChat 公眾號 | 計劃中 | 經認證嘅中國企業 |
啟動 Telegram 機械人
- Message
@BotFather→/newbot→ copy the token. - 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.