Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
Merge branch 'feat/status-phase2'
Yudhi Armyndharis29c81df71390
diff --cc CHANGELOG.mdindex 02337fa80,92283e3b8..f99619b63--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -7,16 -7,22 +7,32 @@@ and this project adheres to [Semantic V## [Unreleased]+ ### Added++ - **Statuses (stories) are now readable on both engines and retained for 24 hours.** Contact status+ updates land in a dedicated 24-hour store as they arrive — so a status posted while the dashboard+ was closed is still there — and `GET /sessions/:id/status` now serves them on the Baileys engine+ too (previously whatsapp-web.js only). A new `GET /sessions/:id/status/:statusId/media` streams a+ stored status image or video.++ - **New opt-in `status.received` webhook.** Subscribe a webhook to `status.received` to be notified+ when a contact posts a status; the payload carries the contact, type, caption, and media flags (no+ media blob — fetch it from the media endpoint). Off by default.++ - **The dashboard Status tab is now functional.** It lists contacts with active statuses, opens a+ read-only viewer for a contact's updates (image and video), and can post a text or image status,+ with a recipient picker on the Baileys engine.++### Fixed++- **Outbound `withSafeFetch` no longer crashes the process on unread webhook response bodies.**+ Status-only callers (queued webhook delivery, webhook test, deprecated direct delivery) left the+ undici response body unread; when the peer reset the TLS socket — or the per-request dispatcher+ was destroyed — undici could emit `TypeError: terminated` / `ECONNRESET` on the body stream with+ no listener, becoming a fatal `uncaughtException` that took every WhatsApp session offline (#887).+ `withSafeFetch` now cancels unread bodies before tearing down the connection; callers that already+ stream the body (media / plugin downloads) are unchanged.+## [0.10.8] - 2026-07-23### Added