pedroslopez / whatsapp-web.js

A WhatsApp client library for NodeJS that connects through the WhatsApp Web browser app
https://wwebjs.dev
Apache License 2.0
15.39k stars 3.67k forks source link

Contacts unable to chat #2138

Closed ricardogobot closed 11 months ago

ricardogobot commented 1 year ago

Is there an existing issue for this?

Describe the bug

Hey guys,

We are having problems with some WhatsApp numbers where only contacts that have the number saved on their cell phones can talk to the number that is consuming the API. Has anyone found a solution for this case?

Expected behavior

I would like a solution for this case.

Steps to Reproduce the Bug or Issue

  1. Contact sends a message from his cell phone to the number that is using an API;
  2. The API does not return this contact because the number using the API is not saved in the contact's phonebook;

Relevant Code

No response

Browser Type

Chromium

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

Hey guys,

We are having problems with some WhatsApp numbers where only contacts that have the number saved on their cell phones can talk to the number that is consuming the API. Has anyone found a solution for this case?

Additional context

Hey guys,

We are having problems with some WhatsApp numbers where only contacts that have the number saved on their cell phones can talk to the number that is consuming the API. Has anyone found a solution for this case?

patojfaca commented 1 year ago

hey I have 2 cases like this. Two numbers are unable to send msg to not registered contacts. I think is a new type of ban, i have see some comments about that. But i dont know if this is really ban or is a "simple" bug Dont found one solution for that problem

cptx032 commented 1 year ago

I've having a similar problem: when I use whatsapp_instance.sendMessage: the method call is made apparently fine, but the message is not delivered to the contact. Is possible to debug the data flow, or something? If I call the function, and the function says that is everything ok (but it is not...)...make sense a validation after the message sent? In some way that if the message is really not sent, the function can throw an error.