v1.1.2 - 2026-06-25
Added
-
CommonJS consumption restored. The package now ships a dual ESM + CJS
build (produced byzshy): thepackage.jsonexportsmap exposes both an
importand arequirecondition (with their own.d.ts/.d.ctstypings),
so the library can be loaded with either syntax —// 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.