[noweb] - Webhook from field returning @lid instead of expected @c.us
Describe the bug
The webhook payload for message.any usually returns the from field in the format [email protected]. However, sometimes the payload unexpectedly returns number@lid instead.
This inconsistency breaks downstream features: • Webhook parsing logic fails because it expects @c.us. • The Get All Chat feature only returns fromMe: true messages, since non-standard @lid chats are not recognized.
Example payload:
{ "id": "false_176369157804064@lid_3A8E1EBFE4943CA06D82", "timestamp": 1759031179, "from": "176369157804064@lid", "fromMe": false, "source": "app", "body": "Iya sist", "hasMedia": false, "media": null }
Version
Observed first on 2025.8.2. Upgraded to the latest version, but the issue still persists.
{ "version": "2025.9.xx", "engine": "NOWEB", "tier": "Plus" }
Steps
To Reproduce 1. Receive webhook event message.any from WAHA. 2. Inspect the payload. 3. Sometimes the from field contains @lid instead of @c.us. 4. Call GET /api/chats — notice that only fromMe:true chats are returned, using the @c.us.
Expected behavior • The from field should consistently return [email protected]. • GET /api/chats should return all chats, not only self-sent messages.
Requests - Responses
Webhook response example attached above.
Docker Logs
Please advise which part of the logs would help debug; I can collect and attach them.
Screenshots
Additional context • This issue started happening suddenly while still on 2025.8.2. • Updating to the latest version did not resolve it. • Possibly related to recent WhatsApp internal changes or WAHA parsing.
I can confirm it is actually happening
Use https://waha.devlike.pro/docs/how-to/contacts/#api---lids to resolve @lid to @c.us (if you have that contact)
@lid and @c.us#
WhatsApp finalized its LID (Local Identifier) update (which it started in 2023).
This LID system assures the anonymity of users in large groups, allowing the WhatsApp client to show a masked value (for example +43.......21) instead of a full phone number. This is done to ensure the privacy of users.
WhatsApp is also adding a username system (@username); relying solely on a phone number to identify a user can be cumbersome or even impossible in some contexts. Thus, WhatsApp now assigns a LID to each user on its platform.
This LID is unique to each user, similar to a JID (phone number–based). You can message anyone using either their LID or their PN.
👉 Use the API - Lids to map between a Phone Number (@c.us) and a LID (@lid) in both directions.
Thank you for the explanation