Download Latest Version 1.2.0 source code.zip (1.3 MB)
Email in envelope

Get an email when there's a new version of Node.js Telegram Bot API

Home / v1.1.2
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-06-25 746 Bytes
v1.1.2 - CommonJS support source code.tar.gz 2026-06-25 1.3 MB
v1.1.2 - CommonJS support source code.zip 2026-06-25 1.3 MB
Totals: 3 Items   2.6 MB 0

v1.1.2 - 2026-06-25

Added

  • CommonJS consumption restored. The package now ships a dual ESM + CJS build (produced by zshy): the package.json exports map exposes both an import and a require condition (with their own .d.ts / .d.cts typings), so the library can be loaded with either syntax —

```js // CommonJS const { TelegramBot } = require("node-telegram-bot-api");

// ESM (unchanged) import TelegramBot from "node-telegram-bot-api"; ```

The v1.0.0 dynamic-import workaround (const { default: TelegramBot } = await import("node-telegram-bot-api")) is no longer required. Source maps are emitted for both module formats, and each CJS artifact references its own map.

Source: README.md, updated 2026-06-25