Chat SDK adds Telegram adapter support
Source: Vercel Blog
Telegram Adapter Support
Chat SDK now supports Telegram, extending its single‑codebase approach to Slack, Discord, GitHub, and Teams with the new Telegram adapter.
Key Features
- Mentions, reactions, direct messages, and typing indicators are supported.
- Handles single file uploads and renders basic text cards.
- Buttons and link buttons appear as inline keyboard elements, enabling interactive workflows directly within Telegram chats.
Getting Started
import { Chat } from "chat";
import { createTelegramAdapter } from "@chat-adapter/telegram";
const bot = new Chat({
userName: "mybot",
adapters: {
telegram: createTelegramAdapter(),
},
});
bot.onNewMention(async (thread, message) => {
await thread.post(`You said: ${message.text}`);
});
Limitations
- Telegram does not expose full historical message APIs to bots, so message history relies on adapter‑level caching.
- Callback data is limited to 64 bytes.
- The platform currently does not support modals or ephemeral messages.
Documentation
Read the full guide to set up and use the adapter: Telegram adapter documentation.