mirror of
https://github.com/vercel/chat.git
synced 2026-09-14 18:32:29 +08:00
6ef8816a55
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@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