Repository navigation
Upgrade notes (behavior changes)
- An ADMIN key with blocked capabilities (
deniedPermissions) is refused with403when it revokes or deletes a key that does not carry all of its limits, clears or widens its ownallowedIps, clears or extends its ownexpiresAt, or creates or updates a key that reaches outside either. A key it creates takes its IP list and expiry when the request names none. Keys that block no capability are unaffected. - An id or number starting with 0 or 10, or with more than 20 digits, is refused with
400wherever a request names a person (group participants and membership requests, a channel admin to demote or a new owner,mentions, contact block and addressbook writes, statusrecipients, where fewer than 5 digits is refused too); Baileys passed them on, so a request naming one alongside valid ids now fails as a whole.
Added
- whatsapp-web.js: a warning when an inbound message reaches the gateway more than 60 s after it was sent (
action: inbound_message_latewithlagSeconds, theninbound_messages_latewithcountandmaxLagSeconds, at most two lines a minute), so a session that receives its messages late while it still reads connected leaves a trace (#2174). - whatsapp-web.js: every change of WhatsApp Web's own connection state is logged (
action: wa_state_changedwithstate), which tells a dropped connection from messages that arrive late while it stays up (#2174). - MCP: five tools manage message templates with the fields, length caps and OPERATOR role of the REST routes, though a cap counts Unicode code points as the published schema does, so an emoji's variation selector counts where REST skips it:
TemplateFindAllandTemplateFindOneon the default read-only mount (25 to 27 tools), andTemplateCreate,TemplateUpdateandTemplateDeleteon a write mount (53 to 58) (#2200). Thanks @saraivaruas.
Changed
- whatsapp-web.js: a new browser profile stores IndexedDB in LevelDB instead of the SQLite backend Chrome for Testing selects, where one long write held inbound messages back for every chat (#2174).
- whatsapp-web.js: a session linked before this release keeps its SQLite store until it is logged out and linked again.
- whatsapp-web.js: an inbound message no longer makes the page send the whole chat to the gateway and read it back for the library's
unread_countevent, which OpenWA does not use (about 250 kB per message, measured on a small group) (#2174). Thanks @hamzaswed for the report. - The amd64 image's Chrome for Testing 158.0.8127.91 to 158.0.8127.107, the current Stable; the arm64 image keeps the chromium package Debian ships.
Fixed
- Dashboard: the Number Checker shows the number WhatsApp answered when it differs from the digits typed (a number entered without its country code can come back under the full one), instead of the typed digits behind a
+(#2208). Thanks @pmhksteve for the report. - Contacts: digits that can be no phone number with its country code (a leading 0 or 10, fewer than 5 digits or more than 20) answer
lid: nullonGET /api/sessions/{sessionId}/contacts/{number}/lidwithout a query, and on whatsapp-web.jsexists: falseonGET /api/sessions/{sessionId}/contacts/check/{number}. whatsapp-web.js answered500for them, and the LID lookup on Baileys503after 30 seconds for a number with a leading 0. - whatsapp-web.js: an id WhatsApp Web refuses (a phone id starting with 0 or 10, of fewer than 5 or more than 20 digits or holding a
+, space or hyphen, a privacy id over 15 digits or starting with 0, a malformed group or channel id) answers400on every route before anything reaches WhatsApp, instead of a500naming only a minified error, which on a send counted toward the send breaker and held theIdempotency-Key. - whatsapp-web.js: an id in upper case or with surrounding spaces is handed to WhatsApp Web trimmed and in lower case, as the gateway reads it elsewhere.
- whatsapp-web.js: a plugin's number check asks about the digits of the number, as the REST route does, instead of failing inside WhatsApp Web on a
+, space or hyphen. - Baileys: a send to a number written with a leading 0 no longer waits on a LID lookup WhatsApp leaves unanswered, 60 seconds with typing simulation on (the default), otherwise 30 seconds and then
503; the recipient check answers at once,400when WhatsApp holds no account for the digits. Typing and presence requests skip the lookup too.
Security
- API keys: a capability-restricted ADMIN that manages keys is held to all of its own limits. It could revoke or delete keys less limited than itself, including an unrestricted admin, and could drop its own IP list and expiry or create keys without them.
Sponsored by Wati, an official WhatsApp API option. Want to send WhatsApp stably, without unofficial-client risks? Use Wati's official WhatsApp API: a managed cloud API with no self-hosting required. Start for free →