pedroslopez / whatsapp-web.js

A WhatsApp client library for NodeJS that connects through the WhatsApp Web browser app
https://wwebjs.dev
Apache License 2.0
15.05k stars 3.58k forks source link

User removed cannot be re-added by the bot inside Communities #2502

Closed AlloryDante closed 11 months ago

AlloryDante commented 1 year ago

Is there an existing issue for this?

Describe the bug

I have noticed the following error If the bot removes and user then it tries to add it back to the group community it wont work.

My use case is that I have a bot that auto kicks members with strange phone numbers and if they verify I want to be able to add them back. I wanted to use a command to do so but seems that once the bot kicks and user, it cannot be added back and no error gets spit out. (I also checked to make sure that the add command works normally)

Expected behavior

Bot must be able to re-add the user

Steps to Reproduce the Bug or Issue

  1. Use removeParticipants to kick a member from the group
  2. Use addParticipants to add it back

// No errors output

Relevant Code

No response

Browser Type

Chromium

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

Oracle cloud free VPS Ubuntu

Additional context

No response

alechkos commented 1 year ago

@AlloryDante are you talking about the community announcement group or a regular group that is linked to the community?

AlloryDante commented 1 year ago

@AlloryDante are you talking about the community announcement group or a regular group that is linked to the community?

I am talking about regular group linked to the community. I didnt test with the announcement group.

Edit: Maybe there is a pop-up or something that needs to be handled.

alechkos commented 1 year ago

@AlloryDante you can add a participant either to the community announcement group or to the regular group using this pr #2344 let me know if you encounter any issue with the pr by this

AlloryDante commented 1 year ago

@AlloryDante you can add a participant either to the community announcement group or to the regular group using this pr #2344 let me know if you encounter any issue with the pr by this

I am already using a PR that fixes the client login. I don't even understeand why the releases of this library are so slow....