mirror of
https://github.com/vercel/chat.git
synced 2026-09-14 18:32:29 +08:00
0c688a0111
* Add support for telegram bot * Add support for action buttons in telegram * Use markdown parse mode * Add more tests * Fix linting issues * Fixes * Fixes * Don't reverse order messages for AI and always answer for telegram * Add telegram integration test * Update telegram.json
1.0 KiB
1.0 KiB
@chat-adapter/telegram
Telegram adapter for Chat SDK.
Installation
npm install chat @chat-adapter/telegram
Usage
import { Chat } from "chat";
import { createTelegramAdapter } from "@chat-adapter/telegram";
const bot = new Chat({
userName: "mybot",
adapters: {
telegram: createTelegramAdapter({
botToken: process.env.TELEGRAM_BOT_TOKEN!,
}),
},
});
Features include mentions, reactions, typing indicators, file uploads, and card fallback rendering with inline keyboard buttons for card actions.
Documentation
Full setup instructions, configuration reference, and features at chat-sdk.dev/docs/adapters/telegram.
License
MIT