Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
docs(webhooks): include the participants hash in the presence key
Yudhi Armyndharis7c5670460657
diff --git a/docs/06-api-specification.md b/docs/06-api-specification.mdindex 14c652847..c05c0173c 100644--- a/docs/06-api-specification.md+++ b/docs/06-api-specification.md@@ -7178,7 +7178,7 @@ Every delivery includes:- `call.received`: `call_{sessionId}_{callId}` (a call id is unique per call, so no `occurredAt` salt)- `call.accepted` / `call.rejected` / `call.missed`: `call_{sessionId}_{callId}_{outcome}` (each call ends once, so no `occurredAt` salt)- `session.restriction`: `restr_{sessionId}_{kind}_{active}_{occurredAt}`-- `presence.update`: `pres_{sessionId}_{chatId}_{occurredAt}`+- `presence.update`: `pres_{sessionId}_{chatId}_{hash(participants)}_{occurredAt}`- any other event (for example `status.received`): `evt_{event with . replaced by _}_{hash(data)}`Recurring lifecycle events (and `message.reaction` / `message.edited` / `presence.update`) carry the same content across occurrences — the same phone on every reconnect, a constant disconnect reason, a re-applied emoji, or editing the same message multiple times — so they are salted with an `occurredAt` timestamp captured **once per dispatch and reused across that dispatch's retries**. This gives distinct occurrences distinct keys while keeping retries of one occurrence stable. Message keys are scoped by `sessionId` because WhatsApp message ids are unique per account, not globally.