devlikeapro / waha

WAHA - WhatsApp HTTP API (REST API) that you can configure in a click! Two engines: chromium-based WEBJS and pure-websocket NOWEB
https://waha.devlike.pro/
Apache License 2.0
878 stars 273 forks source link

NOWEB - get all contacts #169

Closed sg957 closed 2 months ago

sg957 commented 1 year ago

Baileys' noweb engine supports the option of receiving all contacts registered to WhatsApp Documentation of this can be found here https://github.com/WhiskeySockets/Baileys/issues/296 I need this option I would appreciate it if you could add it to your engine

allburov commented 11 months ago

The right place to put those - GET /api/contacts and GET /api/contacts/all

devlikepro commented 2 months ago

Start a brand new session - meaning call POST /api/sessions/logout before and POST /api/sessions/start with payload

{
  "name": "default",
  "config": {
    "noweb": {
      "enabled": {
        "store": true,
        "fullSync": false
      }
    }
  }
}

After that you'll have access those endpoints on NOWEB engine


https://waha.devlike.pro/docs/overview/changelog/#20246

You asked it, we did it - contacts, chats, and messages endpoints are now available in NOWEB engine! Please make sure to Enable NOWEB Store before using these endpoints.

patron:PRO