You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i try to get any informations about a contact via getContactById which i messaged first (number in phone book, I've already added a contact) The value of isMyContact is very variable, sometimes true and sometimes false.
Am I doing something wrong or is this a known bug? Or is there a better way to tell if this id has been added as a contact?
Thanks in advance!
Function:
let contact= await client.getContactById("xxxxx@c.us");
console.log(contact);
Expected behavior
isMyContact=true
Steps to Reproduce the Bug or Issue
By executing the following code(xxxx is the number of my contact person):
let contact= await client.getContactById("xxxxx@c.us");
console.log(contact);
Relevant Code
let contact= await client.getContactById("xxxxx@c.us");
console.log(contact);
Browser Type
Chromium
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
OS:Windows
Phone Os:Android
whatsapp-web.js:1.23.0
WhatsApp Web version:2.2412.54
Node.js Version:v20.11.1
Additional context
No response
The text was updated successfully, but these errors were encountered:
when i try to get any informations about a contact via getContactById which i messaged first (number in phone book, I've already added a contact) The value of isMyContact is very variable, sometimes true and sometimes false.
Am I doing something wrong or is this a known bug? Or is there a better way to tell if this id has been added as a contact?
you have to open and close the script
to get new data, because contact synchronization doesn't work on WhatsApp web
i also use function getContactById to sync people api
when i try to get any informations about a contact via getContactById which i messaged first (number in phone book, I've already added a contact) The value of isMyContact is very variable, sometimes true and sometimes false.
Am I doing something wrong or is this a known bug? Or is there a better way to tell if this id has been added as a contact?
you have to open and close the script to get new data, because contact synchronization doesn't work on WhatsApp web i also use function getContactById to sync people api
@made-777 Which api do you use to synchronize contact data on Whatsaapp web?use client.getContactById? thy
Is there an existing issue for this?
Describe the bug
Hey,
when i try to get any informations about a contact via getContactById which i messaged first (number in phone book, I've already added a contact) The value of isMyContact is very variable, sometimes true and sometimes false.
Am I doing something wrong or is this a known bug? Or is there a better way to tell if this id has been added as a contact?
Thanks in advance!
Function:
let contact= await client.getContactById("xxxxx@c.us");
console.log(contact);
Expected behavior
isMyContact=true
Steps to Reproduce the Bug or Issue
By executing the following code(xxxx is the number of my contact person):
let contact= await client.getContactById("xxxxx@c.us");
console.log(contact);
Relevant Code
let contact= await client.getContactById("xxxxx@c.us");
console.log(contact);
Browser Type
Chromium
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
OS:Windows
Phone Os:Android
whatsapp-web.js:1.23.0
WhatsApp Web version:2.2412.54
Node.js Version:v20.11.1
Additional context
No response
The text was updated successfully, but these errors were encountered: