Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
docs: changelog entry for chat-history-limits + correct the depth-limit framing (#357)
Yudhi Armyndharis8f7fff62d476
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 95d1b6e45..fe29145c9 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0## [Unreleased]+### Documentation++- **Documented chat-history limits.** A new guide explains the difference between the local message-history+ endpoint (`GET /sessions/:id/messages`, reads OpenWA's database) and the bounded live-history endpoint+ (`GET /sessions/:id/messages/:chatId/history`, asks the engine): live history defaults to `limit=50` and is+ clamped to `[1, 100]` (so `limit=999` returns 100, not the full account history), and is a recent-history+ helper rather than a complete server-side import. (#356)+## [0.4.3] - 2026-06-19A security-hardening and reliability release: outbound-request and storage hardening, plugin/message persistencediff --git a/docs/README.md b/docs/README.mdindex 31d780411..2599eb845 100644--- a/docs/README.md+++ b/docs/README.md@@ -236,4 +236,4 @@ MIT License._OpenWA Documentation · Last updated: 2026-06-18_-</div>\ No newline at end of file+</div>diff --git a/docs/examples/chat-history-limits.md b/docs/examples/chat-history-limits.mdindex dcc6d090f..635e4f562 100644--- a/docs/examples/chat-history-limits.md+++ b/docs/examples/chat-history-limits.md@@ -27,11 +27,17 @@ The endpoint is intentionally bounded:- Values such as `limit=999` do not request unbounded history; they are reduced to the maximum allowed limit.- `includeMedia=true` downloads media data and is slower than metadata-only history.-## What It Does Not Guarantee+## How Deep It Can Reach-The live history endpoint does not guarantee a complete import of all server-side WhatsApp history.+The live history endpoint returns at most the **100 most recent** messages per request (the `limit` clamp+above). The `whatsapp-web.js` engine *can* load older messages on demand — internally it drives WhatsApp+Web's "load earlier messages" mechanism — so reaching further back is bounded by **OpenWA's current cap**,+not by what WhatsApp Web is willing to expose. To go back weeks or months you would need a much larger+window than 100; a deeper-history mode is tracked in [#347](https://github.com/rmyndharis/OpenWA/issues/347).-For the `whatsapp-web.js` engine, available history is limited by what WhatsApp Web exposes to the browser session. If WhatsApp Web itself requires manual loading of older messages from the phone, OpenWA cannot assume that the entire account history is already available through a single history request.+There is still an ultimate ceiling: once WhatsApp's servers stop returning older messages for the linked+session, no further history is retrievable through the web engine, regardless of `limit`. So the endpoint+does not guarantee a complete import of all server-side WhatsApp history.## Recommended Usage