GithubHelp home page GithubHelp logo

Comments (6)

pedroslopez avatar pedroslopez commented on May 14, 2024

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.

iamrenaud avatar iamrenaud commented on May 14, 2024

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.

pedroslopez avatar pedroslopez commented on May 14, 2024

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.

iamrenaud avatar iamrenaud commented on May 14, 2024

getContactById is working fine.

getContacts is not working.

from whatsapp-web.js.

aliyss avatar aliyss commented on May 14, 2024
  • 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.

stale avatar stale commented on May 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.