Comments (6)
I've just checked and this seems to be working fine for me.
What version of the library are you on / what version of whatsapp web is running? You can check the whatsapp web version by launching with headless: false
, opening up the chrome console, and typing Debug.VERSION
from whatsapp-web.js.
Hi! Whatsapp web version : 0.4.613 and for this library I have : 1.0.2 . I installed it yesterday!
I've checked other features, all seems to be working even getContactById() , but getContacts() surprisingly not working.
Thanks.
from whatsapp-web.js.
That should work.
Hold on, was the error you posted from getContactById or getContacts? It seems like getContactById, in which case that could happen if the ID you were looking up was not found.
from whatsapp-web.js.
getContactById is working fine.
getContacts is not working.
from whatsapp-web.js.
- pulled the latest version.
- code used:
client.on('message_create', async (msg) => {
// Fired on all message creations, including your own
if (msg.fromMe) {
// do stuff here
console.log(await client.getContacts())
}
});
worked fine.
from whatsapp-web.js.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from whatsapp-web.js.
Related Issues (20)
- Authentication Error HOT 4
- Cannot read properties of null HOT 1
- LocalWebCache HOT 3
- Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default') HOT 1
- The `punycode` module is deprecated. Please use a userland alternative instead. HOT 1
- Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default') at pptr://__puppeteer_evaluation_script__:5:95 HOT 1
- Performance issue HOT 8
- Cannot read properties of undefined (reading 'WidFactory')
- LocalWebCache.js Error HOT 1
- Connecting with QR or PairingCode fails on versions 2.3x with #webpack-exodus (only possible with webVersion 2.2412.50 or less) HOT 1
- Error: Evaluation failed: Error: wid error: invalid wid HOT 1
- contact.isMyContact is very variable, sometimes true and sometimes false HOT 2
- not working due to whatsapp web update HOT 1
- No events fired after successful QR code scan HOT 1
- Label hexColor property is aways undefined
- manifest not found HOT 1
- TypeError: Cannot read properties of null (reading '1') HOT 2
- Error when starting the bot HOT 1
- send link with linkPreview not work HOT 1
- TypeError: Cannot read properties of null (reading '1') at LocalWebCache.js for fresh installation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whatsapp-web.js.