npm node-telegram-bot-api 1.1.2
v1.1.2 - CommonJS support

5 hours ago

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 —

    // 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.

Don't miss a new node-telegram-bot-api release

NewReleases is sending notifications on new releases.