Skip to content
PluginStats

@chat-adapter/telegram weekly downloads statistics

By chat-adapter (14 listings) · npm · AI SDKs

Telegram adapter for Chat SDK — Bot API webhooks, inline keyboards, reactions, and streaming

View on npm Fresh · Dec 6, 2026

@chat-adapter/telegram has 645,645 recorded weekly downloads on npm, an increase of 40.2% over the past 30 days, ranking #341 of 3,247 tracked listings.

Weekly downloads
645,645
Official API · Dec 5, 2026
7-day growth
+18.3%
+100K weekly downloads
30-day growth
+40.2%
+185.2K weekly downloads
90-day growth
+246%
+458.9K weekly downloads
Rank
#341
▲ 15 in 7 days

About @chat-adapter/telegram

Telegram adapter for Chat SDK

@chat-adapter/telegram

npm package: @chat-adapter/telegram

Agent Stack MIT License

Telegram adapter for Chat SDK. Configure for bot webhooks and messaging.

Documentation: chat-sdk.dev/adapters/official/telegram · Guides: vercel.com/kb/chat-sdk

Installation

pnpm add @chat-adapter/telegram

Scaffold with the CLI

To scaffold a new Telegram bot with this adapter preselected:

npx create-chat-sdk@latest my-bot --adapter telegram memory

Visit the adapters directory to see other available official and vendor-official adapters.

Quick start

For managed credentials, see Vercel Connect.

The adapter auto-detects TELEGRAM_BOT_TOKEN, TELEGRAM_WEBHOOK_SECRET_TOKEN, TELEGRAM_ALLOW_UNVERIFIED_WEBHOOKS, TELEGRAM_BOT_USERNAME, TELEGRAM_MENTION_ON_REPLY, and TELEGRAM_API_BASE_URL from environment variables:

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}`);
});

Configuration

Most options are auto-detected from environment variables when not provided. nativeStreaming, persistThreadHistory, streamingEditIntervalMs, and longMessages are config only and have no environment variables.

OptionRequiredDescription
allowUnverifiedWebhooksNoAccept webhook requests without secret-token verification. Auto-detected from TELEGRAM_ALLOW_UNVERIFIED_WEBHOOKS=true. Use only for local development or behind a trusted verifying proxy
allowedUserIdsNoTelegram user IDs allowed to trigger the adapter. Auto-detected from TELEGRAM_ALLOWED_USER_IDS (comma-separated). All users are allowed when omitted or empty
botTokenNo*Telegram bot token. Auto-detected from TELEGRAM_BOT_TOKEN
secretTokenWebhook*Webhook secret token. Auto-detected from TELEGRAM_WEBHOOK_SECRET_TOKEN
modeNoAdapter mode: auto (default), webhook, or polling
longPollingNoOptional long polling config for getUpdates (timeout, limit, allowedUpdates, deleteWebhook, dropPendingUpdates, retryDelayMs)
businessModeNoEnable Telegram Business mode (business_connection, business_message, edited_business_message). Defaults to false
userNameNoBot username used for mention detection. Auto-detected from TELEGRAM_BOT_USERNAME or getMe
mentionOnReplyNoTreat a reply to one of the bot's own messages as a mention, so it routes to onNewMention. Defaults to false. Auto-detected from TELEGRAM_MENTION_ON_REPLY=true. Implicit forum-topic replies and the bot's own messages never count
nativeStreamingNoStream with Telegram's native draft previews in private chats. Defaults to false, which uses post-and-edit in every chat type
persistThreadHistoryNoSave incoming messages and the bot's own posts in the Chat state adapter so thread.messages and channel.messages return earlier turns. Defaults to true. Telegram has no Bot API for reading chat history, so with false handlers see only messages cached in the current process. Turn it off when your app keeps its own transcript
streamingEditIntervalMsNoMinimum interval between edits on the post-and-edit streaming path. Defaults to 1100 in private chats and 3100 in other chats, and acts as a floor for the Chat-level streamingUpdateIntervalMs
longMessagesNoHow text posts longer than Telegram's message limit are sent: truncate (default) cuts them with an ellipsis, split sends the full text as consecutive messages. See Long messages
apiUrlNoTelegram API base URL. Auto-detected from TELEGRAM_API_BASE_URL. Use apiUrl for cross-adapter consistency; the legacy apiBaseUrl alias is still accepted
loggerNoLogger instance (defaults to ConsoleLogger("info"))

*botToken is always required. Webhook mode also requires secretToken unless allowUnverifiedWebhooks is explicitly enabled. Polling mode does not require webhook verification.

Authentication

Use Vercel Connect to manage the outbound bot token, or provide the token directly. Both options use Telegram's native webhook verification; polling does not require a webhook secret.

Option A — Vercel Connect

Use connectTelegramAdapter to resolve the outbound bot token from Vercel Connect:

import { createTelegramAdapter } from "@chat-adapter/telegram";
import { connectTelegramAdapter } from "@vercel/connect/chat";

const telegram = createTelegramAdapter({
  ...connectTelegramAdapter("telegram/acme-telegram"),
  secretToken: process.env.TELEGRAM_WEBHOOK_SECRET_TOKEN,
});
```…

Description from the npm listing.

  • chat
  • chat-sdk
  • chatbot
  • telegram
  • telegram-bot
  • bot
  • adapter
  • bot-api
  • messaging
  • ai-agent
  • ai-sdk
  • vercel

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@chat-adapter/telegram weekly downloads on npm, last 90 days: 645,645 weekly downloads as of Dec 5, 2026, +246% over 90 days.@chat-adapter/telegramWeekly downloads on npm · Last 90 days645,645downloads / week+246% over 90 days0100K200K300K400K500K600K700KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@chat-adapter/telegram weekly downloads on npm, last 90 days: 645,645 weekly downloads as of Dec 5, 2026, +246% over 90 days.

7/30/90-day growth

@chat-adapter/telegram weekly downloads growth on npm: +18.3% over 7 days, +40.2% over 30 days, +246% over 90 days.@chat-adapter/telegramWeekly downloads growth on npm645,645downloads / week now7-day growth+99,985 weekly downloads+18.3%30-day growth+185,191 weekly downloads+40.2%90-day growth+458,852 weekly downloads+246%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@chat-adapter/telegram weekly downloads growth on npm: +18.3% over 7 days, +40.2% over 30 days, +246% over 90 days.

Ranking history

@chat-adapter/telegram npm ranking history: currently #341 (by weekly downloads).@chat-adapter/telegramnpm ranking · by weekly downloads · Last 90 days#341current rank#320#340#360#380#400#420Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
@chat-adapter/telegram npm ranking history: currently #341 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 18, #1 (overall #341)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs378 listings · 19 pages · page 1, #16 (overall #16)
AI SDKs: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (170)
Recent weekly downloads observations for @chat-adapter/telegram
Date (UTC)Weekly downloadsChange vs. previous
645,645+11.5K
634,120+35.4K
598,722+30.4K
568,327+16.9K
551,453+9.3K
542,132-9.2K
551,284+5.6K
545,660+1.5K
544,182-10.5K
554,730-37.9K
592,652-11.6K
604,279-353
604,632-5.4K
610,002—

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@chat-adapter/telegram. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.