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 · 2 comments
Open

list-chats is not returning Newsletters #1711

mircoianese opened this issue Feb 3, 2024 · 2 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 }

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

3 participants