Second prerelease of the v2 redesign. Published to npm under the `next` dist-tag (`latest` remains `1.1.2`).
```sh
npm i node-telegram-bot-api@next
```
v2 is a from-scratch, runtime-agnostic TypeScript rewrite (Node 18+, Bun, Deno, Cloudflare Workers, Vercel/Deno Edge), a single generated `Api` client, and koa-style middleware dispatch over a per-update `Context`. There is no v1 compatibility shim.
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`.