waha icon indicating copy to clipboard operation
waha copied to clipboard

/api/contacts/all - fetch all contacts sorted by the 'last message received' date

Open ehussain opened this issue 2 years ago • 2 comments

Hello.

We would like to fetch all contacts in phone but it should be sorted in 'last message received' date order. Please add a parameter to api so that we can get contacts in requested order.

Current api returns the contacts in alphabetical order. but our need is to sync the messages that apperared when phone was not connected with session. so its important to get contacts in order by last message date.

Thank you.

ehussain avatar Jul 14 '23 08:07 ehussain

I think it's what /chats will be for https://github.com/devlikeapro/whatsapp-http-api/issues/114

allburov avatar Jul 14 '23 08:07 allburov

What will be the ETA for this feature? When can we expect to have this?

ehussain avatar Jul 14 '23 09:07 ehussain

GET /chats is exactly what you asked - it's sorted by last received message https://waha.devlike.pro/docs/how-to/chats/#get-all-chats

patron:PRO

devlikepro avatar Jun 17 '24 04:06 devlikepro