wppconnect-team / wppconnect-server

Wppconnect Server is a ready-to-use API, just download, install, and start using, simple as that.
https://wppconnect.io/swagger/wppconnect-server/
Apache License 2.0
676 stars 395 forks source link

list-chats is not returning Newsletters #1711

Open mircoianese opened 9 months ago

mircoianese commented 9 months ago

Description

The POST method /api/{session}/list-chats with {} body is not returning newsletters in the response. For each newsletter you should be also able to know the user role (creator, administrator, normal user), and the number of total users in the newsletter. Additionally, a boolean field onlyNewsletters should be added to the body to filter out newsletters.

All of this is needed in order to get the Newsletter IDs prior to sending messages.

Environment

Steps to Reproduce

  1. Login
  2. Check that the account has at least one Newsletter which is subscribed to
  3. Call the list-chats method
  4. No newsletters are returned in the call

Thanks!

manojsitapara commented 7 months ago

This is very much need @edgardmessias @icleitoncosta if possible please add it

icleitoncosta commented 4 months ago

Please, pass parameter in body: { onlyNewsletter: true }

mircoianese commented 2 months ago

Please, pass parameter in body: { onlyNewsletter: true }

Doesn't seem to work, all chats are returned. And newsletters are not in the list

hyyashu commented 1 month ago

Can anyone confirm if this is a bug or an issue on my end? When I send a POST request with an empty body {}, it gets stuck at "sending request." If I don't pass anything at all, I get a blank response with a status 200 OK. However, when I send:{ "onlyGroups": true} it works as expected. Is anyone else experiencing this issue?