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

Cannot apply for group membership #2221

Open
gekkedev opened this issue Jun 16, 2024 · 2 comments
Open

Cannot apply for group membership #2221

gekkedev opened this issue Jun 16, 2024 · 2 comments
Labels
enhancement New feature or request needs triage

Comments

@gekkedev
Copy link
Contributor

Is your feature request related to a problem? Please describe.
When trying to join a group using client.joinGroup(), I sometimes experience an UnexpectedJoinGroupViaInviteResponse exception. This is the case whenever the group has the following setting enabled:
"membershipApprovalMode": true
Admins need to approve your request to join first.

Describe the solution you'd like
There is only one method for joining; it could be made to support applying (and reflect in the result that we didn't fully join, but apply). Alternatively, a second method could be implemented like client.applyForGroup(). That would require users to check the group setting membershipApprovalMode first before joining and then choosing the adequate method (more implementation effort for WPPConnect
users).

Describe alternatives you've considered
Manually opening the app and joining (not using WPPConnect) :/

@gekkedev gekkedev added enhancement New feature or request needs triage labels Jun 16, 2024
@icleitoncosta
Copy link
Contributor

What the whatapp version?
WPPConnect version and WAJS version?

@gekkedev
Copy link
Contributor Author

gekkedev commented Jun 17, 2024

Node.js 18
WPPConnect 1.32.0

  • which depends on wa-js@^3.3.1

However, I think applying for membership is just not implemented. I didn't see anything about it in the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs triage
Projects
None yet
Development

No branches or pull requests

2 participants