Hi everyone,
Recently I’ve been facing an issue that seems to be related to WhatsApp’s new use of hidden IDs (@lid).
In some cases, when a user sends a message, the remoteJid field comes as something like:
1234567890@lid
instead of the expected:
1234567890@s.whatsapp.net
When this happens, Baileys does not provide the real WhatsApp number, making it impossible to reply to that user correctly.
In groups, sometimes the participant field still contains a valid @s.whatsapp.net, but in private chats there is no reliable way to map the @lid to the real JID.
This results in bots either ignoring the message or (worse) attempting to send replies to non-existent numbers.
I’ve seen some related discussions in recent issues, but I couldn’t find a concrete fix or workaround.
My questions are:
Is there any official plan or timeline for solving this @lid mapping issue?
Is there a recommended temporary workaround until an official patch is released?
Can we expect a function within Baileys that safely converts or normalizes @lid → @s.whatsapp.net where possible?
This issue is currently blocking production use of my project, and I’m sure other developers must be experiencing the same problem.
Hi everyone,
Recently I’ve been facing an issue that seems to be related to WhatsApp’s new use of hidden IDs (@lid).
In some cases, when a user sends a message, the remoteJid field comes as something like:
1234567890@lid
instead of the expected:
1234567890@s.whatsapp.net
When this happens, Baileys does not provide the real WhatsApp number, making it impossible to reply to that user correctly.
In groups, sometimes the participant field still contains a valid @s.whatsapp.net, but in private chats there is no reliable way to map the @lid to the real JID.
This results in bots either ignoring the message or (worse) attempting to send replies to non-existent numbers.
I’ve seen some related discussions in recent issues, but I couldn’t find a concrete fix or workaround.
My questions are:
Is there any official plan or timeline for solving this @lid mapping issue?
Is there a recommended temporary workaround until an official patch is released?
Can we expect a function within Baileys that safely converts or normalizes @lid → @s.whatsapp.net where possible?
This issue is currently blocking production use of my project, and I’m sure other developers must be experiencing the same problem.