whatsapp-http-api
whatsapp-http-api copied to clipboard
[Feature Request] Additional features on GET /api/{session}/chats
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
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