tulir / whatsmeow

Go library for the WhatsApp web multidevice API

Home Page:https://go.mau.fi/whatsmeow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sending messages to hidden users (HiddenUserServer)

poislagarde opened this issue · 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

Same thing here! Any fix for this?

This error. It's happening here too.

Any solution?

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

And I fixed by restarting the entire program.