Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
fix: two self-review follow-ups on work already merged to main (#775)
Yudhi Armyndharis8208feb704a0
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 147686192..f2363922d 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -48,6 +48,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0three, and the stale adapter line references in the catalog evidence now point at the real stubs. Nobehavior change; `openapi.json` regenerated.+- **The send-response Swagger text now matches the prose it was corrected alongside (docs only).** The+ `messageId` description still asserted that a message to a number not on WhatsApp "never delivers" —+ the same unevidenced claim about WhatsApp's behavior that was retracted from `docs/06` in the same+ change that edited this string. It now says what the prose says: the outcome reaches you+ asynchronously, if at all. `openapi.json` regenerated.++- **The Message Tester's status code renders in monospace.** It was emitted as `<span class="mono">`,+ but every monospace rule in the dashboard hangs off a compound selector (`.detail-value.mono`), which+ a bare span never matches — so the class contributed only the RTL direction isolation it was chosen+ for, and nothing else. A plain `<code>` earns both from the existing global rules with no new CSS.+- **Corrected the send-response documentation (docs only).** The guidance added in #739 overstated what astalled send tells you: it said a message resting at `sent` for a recipient you have never reached is"almost certainly a number that is not on WhatsApp." That inference does not hold in the otherdiff --git a/dashboard/src/pages/MessageTester.tsx b/dashboard/src/pages/MessageTester.tsxindex 167bb580e..2846c3ece 100644--- a/dashboard/src/pages/MessageTester.tsx+++ b/dashboard/src/pages/MessageTester.tsx@@ -368,9 +368,11 @@ export function MessageTester() {<span>{t('messageTester.failedLabel')}</span></>)}- {/* `.mono` keeps the code LTR inside an RTL container (ar/he) via the shared rule in- index.css, so the bidi algorithm doesn't reorder it against the translated label. */}- {response.status !== undefined && <span className="mono">HTTP {response.status}</span>}+ {/* `<code>` earns both halves from index.css with no new rule: a monospace face, and the+ LTR isolation that stops the bidi algorithm reordering the number against an RTL label+ (ar/he). The `.mono` class only carries the second — its monospacing lives on compound+ selectors like `.detail-value.mono`, which a bare span never matches. */}+ {response.status !== undefined && <code>HTTP {response.status}</code>}</div><div className="response-details">diff --git a/openapi.json b/openapi.jsonindex 865576d32..7111a491d 100644--- a/openapi.json+++ b/openapi.json@@ -6086,7 +6086,7 @@"properties": {"messageId": {"type": "string",- "description": "The message id, assigned when the gateway accepts the message for sending. A 201 here means the message was handed to the WhatsApp client — it does NOT confirm delivery. WhatsApp does not reject an unregistered recipient synchronously, so a message to a number that is not on WhatsApp still returns 201 with a valid messageId but never delivers. To confirm a number is on WhatsApp before sending, use GET /api/sessions/{sessionId}/contacts/check/{number}; track real delivery via the message `status` field (sent → delivered → read, or failed if WhatsApp reports an error for it). A message resting at `sent` is not diagnostic on its own: a registered recipient whose device has not come online since the send stays at `sent` too.",+ "description": "The message id, assigned when the gateway accepts the message for sending. A 201 here means the message was handed to the WhatsApp client — it does NOT confirm delivery. WhatsApp does not reject an unregistered recipient synchronously, so a message to a number that is not on WhatsApp still returns 201 with a valid messageId; whether it later delivers, stalls, or is reported as an error reaches you asynchronously, if at all. To confirm a number is on WhatsApp before sending, use GET /api/sessions/{sessionId}/contacts/check/{number}; track real delivery via the message `status` field (sent → delivered → read, or failed if WhatsApp reports an error for it). A message resting at `sent` is not diagnostic on its own: a registered recipient whose device has not come online since the send stays at `sent` too.","example": "[email protected]_3EB0123456789"},"timestamp": {diff --git a/src/modules/message/dto/send-message.dto.ts b/src/modules/message/dto/send-message.dto.tsindex cf599de6b..cf8dfe245 100644--- a/src/modules/message/dto/send-message.dto.ts+++ b/src/modules/message/dto/send-message.dto.ts@@ -122,7 +122,8 @@ export class MessageResponseDto {'The message id, assigned when the gateway accepts the message for sending. A 201 here means the ' +'message was handed to the WhatsApp client — it does NOT confirm delivery. WhatsApp does not reject ' +'an unregistered recipient synchronously, so a message to a number that is not on WhatsApp still ' +- 'returns 201 with a valid messageId but never delivers. To confirm a number is on WhatsApp before ' ++ 'returns 201 with a valid messageId; whether it later delivers, stalls, or is reported as an error ' ++ 'reaches you asynchronously, if at all. To confirm a number is on WhatsApp before ' +'sending, use GET /api/sessions/{sessionId}/contacts/check/{number}; track real delivery via the ' +'message `status` field (sent → delivered → read, or failed if WhatsApp reports an error for it). ' +'A message resting at `sent` is not diagnostic on its own: a registered recipient whose device has ' +