npm node-telegram-bot-api 2.0.0-alpha.2

8 hours ago

Third prerelease of the v2 redesign. Published to npm under the next dist-tag (latest remains 1.1.2).

npm i node-telegram-bot-api@next

Since 2.0.0-alpha.1:

  • Default error boundary. A handler error never stops the bot: it is routed to the error boundary, which by default logs via console.error and continues. Install your own with bot.catch(); rethrowing from it opts back into fail-loud (#1328)
  • webhookCallback responds 500 when the error boundary rethrows, so Telegram redelivers the update (#1328)
  • README documents the error-boundary contract and the @next install tag

See the migration guide (the [Unreleased] section) for the full v1 -> v2 cheatsheet.

This is a prerelease and may change before the stable 2.0.0.

Full changelog: v2.0.0-alpha.1...v2.0.0-alpha.2

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

NewReleases is sending notifications on new releases.