Session storage
- Added
S3SessionStorage(exported from the corenode-telegram-bot-api): a
durable, cross-instance session backend for any S3-compatible object store
(AWS S3, Cloudflare R2, MinIO, DigitalOcean Spaces), speaking the S3 REST API
directly overfetchwith AWS Signature V4 signing. Core and runtime-agnostic
(Node 19+, Bun, Deno, Workers, edge);fetchandcryptoare injectable, so
Node 18 can supplynode:crypto'swebcrypto. It has no per-object TTL - use
a bucket lifecycle rule on the prefix. Validated against the AWS SigV4 example
vector, theaws4reference signer, and live MinIO / RustFS / Bun S3 servers.
Uploads
InputFileuploads no longer throwReferenceError: crypto is not definedon
Node 18: the multipart boundary is now built without the global WebCrypto
(which Node exposes unflagged only from v19), so uploads work across the full
supported Node 18.2+ range (#1378).
Full diff: v2.2.0...v2.3.0-rc0