whatsmeow icon indicating copy to clipboard operation
whatsmeow copied to clipboard

Sending messages to hidden users (HiddenUserServer)

Open poislagarde opened this issue 1 year ago • 4 comments

WhatsApp sometimes hides the phone number when a user opens a chat with a business for the first time:

You can start a WhatsApp chat directly with a business through ads on Facebook and Instagram. In some cases, when you open a chat with a business for the first time, your phone number will be hidden from them by default for your privacy. This means that the business can’t see your phone number or call you at your phone number unless you choose to share it. When phone number hiding is enabled, you will see a system message alerting you of this in the chat.

Source: https://faq.whatsapp.com/626403979060997/?helpref=uf_share

The JID of these chats ends with @lid (the HiddenUserServer server).

Problem

I get the following error when trying to reply to one of these chats using Client.SendMessage:

can't send message to unknown server lid

poislagarde avatar Oct 10 '23 18:10 poislagarde

Same thing here! Any fix for this?

ezesculli avatar Oct 11 '23 14:10 ezesculli

This error. It's happening here too.

Any solution?

HermesMacedo avatar Dec 29 '23 13:12 HermesMacedo

Hidden chat server isn't implemented yet.

https://github.com/tulir/whatsmeow/blob/main/send.go#L194-L204

mamur-rezeki avatar Dec 29 '23 14:12 mamur-rezeki

My error was: Error sending message: failed to get device list: unknown user server 'lid'

And I fixed by restarting the entire program.

david-botelho-mariano avatar Feb 14 '24 23:02 david-botelho-mariano