Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

list-chats is not returning Newsletters #1711

Open
mircoianese opened this issue Feb 3, 2024 · 4 comments
Open

list-chats is not returning Newsletters #1711

mircoianese opened this issue Feb 3, 2024 · 4 comments
Labels
bug Something isn't working needs triage

Comments

@mircoianese
Copy link

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

  • Wppconnect-server version(s): 2.4.0
  • OS: Docker image built with the included Dockerfile

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!

@mircoianese mircoianese added bug Something isn't working needs triage labels Feb 3, 2024
@manojsitapara
Copy link

manojsitapara commented Mar 12, 2024

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

@icleitoncosta
Copy link
Collaborator

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

@mircoianese
Copy link
Author

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

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

@hyyashu
Copy link

hyyashu commented Sep 5, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

4 participants