2.0.0-alpha.2
Pre-release
Pre-release
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@nextSince 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.errorand continues. Install your own withbot.catch(); rethrowing from it opts back into fail-loud (#1328) webhookCallbackresponds 500 when the error boundary rethrows, so Telegram redelivers the update (#1328)- README documents the error-boundary contract and the
@nextinstall 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