whatsapp-http-api icon indicating copy to clipboard operation
whatsapp-http-api copied to clipboard

[Feature Request] Additional features on GET /api/{session}/chats

Open simonemori opened this issue 9 months ago • 1 comments

Hi,

Would it be possible to please add the following parameters to the GET call /api/{session}/chats?

  • [x] limit [number]
  • isGroup [boolean]
  • lastMessageFromMe [boolean]
  • lastMessageViewed [boolean]

please feel free to change or suggest another way.

Thanks, Simone

patron:ADVANCED

simonemori avatar Apr 29 '24 23:04 simonemori

Added limit and offset parameters to GET /api/{session}/chats endpoint.

  • Read more about Get all chats
  • Build: 2024.6.4
  • Engine: WEBJS
  • Engine: NOWEB

Get all chats

Get all chats

GET /api/{session}/chats
  • limit - limit the number of chats to return
  • offset - skip the number of chats from the start

If you see timeout or the request takes too long - consider using limit parameter to get chats in smaller chunks

GET /api/{session}/chats?limit=100&offset=0

patron:PRO

devlikepro avatar Jun 17 '24 04:06 devlikepro