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

Get all chats Not working #152

Closed Devanagaraj closed 1 year ago

Devanagaraj commented 1 year ago

https://waha.devlike.pro/docs/how-to/chats/#get-all-chats giving {'statusCode': 404, 'message': 'Cannot GET /api/otama/messages', 'error': 'Not Found'}

allburov commented 1 year ago

Hi! What version (number) do you use? You can get it with /api/version

Btw, I didn't find the endpoint you mentioned in the doc There's two of them -

  1. GET /api/{session}/chats/{chatId}/messages?limit=100
  2. http://localhost:3000/api/messages?chatId=11111111111%40c.us&limit=1000&session=default

Which one do you use?

allburov commented 1 year ago

Make sure you use the right endpoint with right parameters!

Devanagaraj commented 1 year ago

image

I am using V 2023.7.1 plus version http://localhost:3000/api/{session}/chats

not working. It is expected to return all last messages from the chats as per the documentation...

allburov commented 1 year ago

Sorry, the endpoints were added recently, could you try to update your container? https://waha.devlike.pro/docs/overview/changelog/#20238

Devanagaraj commented 1 year ago

when did you updated this?

allburov commented 1 year ago

The latest version contains all endpoints you mentioned

when did you updated this?

https://github.com/devlikeapro/whatsapp-http-api/releases/tag/2023.7.16