Return LID in send message response for reliable conversation mapping
Is your feature request related to a problem? Please describe.
Yes.
Due to recent WhatsApp changes, incoming messages often contain only the LID and not the original phone number.
When I send a message to a phone number via WAHA, the API response does not return the LID of that recipient.
Later, when the user replies, the webhook includes only the LID. Since the phone number is no longer exposed, my system cannot map the reply to the existing contact in the CRM.
This causes:
Conversation splitting
Bots failing to document replies correctly
CRM systems losing message mapping
Additional API calls required to resolve LID mapping
Increased server load and latency
Describe the solution you'd like
When sending a message to a phone number, the API response should always include the corresponding LID for that recipient.
This would allow developers to immediately store the LID and map all future incoming messages correctly, without additional lookup requests.
Describe alternatives you've considered
Currently, the only workaround is to perform additional API calls after receiving a reply in order to resolve the LID mapping.
This increases request volume, latency, and unnecessary server load.
Returning the LID in the initial send response would solve this cleanly and efficiently.
related to lid/c.us as well
- https://github.com/devlikeapro/waha/issues/993
- https://github.com/devlikeapro/waha/issues/1684
- https://github.com/devlikeapro/waha/issues/1817
Happy to see some movement around this issue
+1