| Name | Modified | Size | Downloads / 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): thepackage.jsonexportsmap exposes both animportand arequirecondition (with their own.d.ts/.d.ctstypings), 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.