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
943 stars 283 forks source link

[enhancement] /chats endpoint is not implemented on NOWEB #217

Closed ehussain closed 3 months ago

ehussain commented 1 year ago

Hello,

We are making following api call on NOWEB instance but we are getting this exception.

/api/{session}/chats?session={session}
{"statusCode":422,"message":"The method is not implemented by the engine.","error":"Unprocessable Entity"}

Please implement this endpoint on NOWEB engine so we can fetch the active chats in whatsapp.

allburov commented 12 months ago

We'll implement remote storage and add that endpoint after https://github.com/devlikeapro/whatsapp-http-api/issues/41

devlikepro commented 3 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