Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(status): say which restarts lose a Baileys status's recipients

Yudhi Armyndharis3c8100dfc68a
diff --git a/openapi.json b/openapi.json
index 587853de7..68b1eab9e 100644
--- a/openapi.json
+++ b/openapi.json
@@ -7821,7 +7821,7 @@
}
},
"403": {
- "description": "Key lacks OPERATOR role; on whatsapp-web.js, the id is not one of the account's own statuses; on Baileys, the status was not posted by this session in the last 24 hours (or was posted before the session last started or reconnected, before a restart, from the phone or from another node), so its recipients are unknown and the revoke cannot be addressed to them."
+ "description": "Key lacks OPERATOR role; on whatsapp-web.js, the id is not one of the account's own statuses; on Baileys, the status was not posted by this session in the last 24 hours (it was posted from the phone or from another node, or before the session's engine was last created by a restart, a stop and start, or a reconnect the gateway runs itself), so its recipients are unknown and the revoke cannot be addressed to them."
},
"404": {
"description": "No session is running under that id — it was never started, was stopped, or does not exist. These routes report an unstarted session as `404`, where the message and group routes report it as `400`."
diff --git a/src/modules/status/status.controller.ts b/src/modules/status/status.controller.ts
index bcd081d3d..d8f0049c7 100644
--- a/src/modules/status/status.controller.ts
+++ b/src/modules/status/status.controller.ts
@@ -181,9 +181,10 @@ export class StatusController {
status: 403,
description:
"Key lacks OPERATOR role; on whatsapp-web.js, the id is not one of the account's own statuses; on " +
- 'Baileys, the status was not posted by this session in the last 24 hours (or was posted before the ' +
- 'session last started or reconnected, before a restart, from the phone or from another node), so its ' +
- 'recipients are unknown and the revoke cannot be addressed to them.',
+ 'Baileys, the status was not posted by this session in the last 24 hours (it was posted from the phone ' +
+ "or from another node, or before the session's engine was last created by a restart, a stop and start, " +
+ 'or a reconnect the gateway runs itself), so its recipients are unknown and the revoke cannot be ' +
+ 'addressed to them.',
})
@ApiResponse({ status: 409, description: ENGINE_NOT_READY_409 })
@ApiResponse({ status: 404, description: SESSION_NOT_STARTED_404 })