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

error: client.removeParticipant() does not accept recent group IDs #1709

Closed
ch4rliedev opened this issue Jun 1, 2023 · 1 comment
Closed
Labels
bug Something isn't working needs triage

Comments

@ch4rliedev
Copy link

Description

When trying to use "client.removeParticipant()" in the WPPConnect lib I get the error:
"error: [Boruto Raiden:client] Error: Chat 120363136981613165@g.us is not a group"

Even if that ID is a group. Reading the documentation, apparently the type of ID that is accepted has a hyphen in the middle of it, and in a quick search, old groups like 2017 have this ID, indicating that whatsapp has changed the way it identifies groups currently.

Environment

  • WPPConnect version(s): 1.25.0
  • WA-JS version(s): 2.24.2
  • Browser: Chromium XX
  • OS: Windows 10 22H2 - 19045.3031
  • Node version: Node 18.16.0
  • WhatsApp version: 2.2307.10
  • MultiDevice (BETA): yes

Steps to Reproduce

  1. Just try to remove a member from a group using "client.removeParticipant(groupId, userId)"

Log Output

error: [Boruto Raiden:client] Error: Chat 120363136981613165@g.us is not a group

Your Code

await client.removeParticipant('120363136981613165@g.us', target.id_wpp_complete) "target.id_wpp_complete" retorna "559999999@c.us"

Additional context / Screenshot

image

@ch4rliedev ch4rliedev added bug Something isn't working needs triage labels Jun 1, 2023
@icleitoncosta
Copy link
Contributor

Hi @ch4rliedev, do you can test in the latest version?

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

2 participants