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

group_leave it's not emit in community #3421

Open
2 tasks done
nikolasmagno opened this issue Dec 24, 2024 · 3 comments · May be fixed by #2531
Open
2 tasks done

group_leave it's not emit in community #3421

nikolasmagno opened this issue Dec 24, 2024 · 3 comments · May be fixed by #2531
Labels
bug Something isn't working

Comments

@nikolasmagno
Copy link

Is there an existing issue for this?

  • I have searched the existing issues.

Is this a problem caused by your code, or is it specifically because of the library?

  • I have double-checked my code carefully.

Describe the bug.

I made a lot of tests over groups testing group_join event and group_leave events and worked perfect, but after try it same code in a community, only group_join it's working, group leave are not beeing emmited.
Infos:

Code:

client.on('group_join', (notification) => {
console.log("join", notification);

});

client.on('group_leave', (notification) => {
console.log("leave", notification);

})

Version:
"whatsapp-web.js": "^1.26.0"

Expected Behavior

emit group_join and group_leave in community

Steps to Reproduce the Bug or Issue

client.on('group_join', (notification) => {
console.log("join", notification);

});

client.on('group_leave', (notification) => {
console.log("leave", notification);

})

//try it in a community as admin

WhatsApp Account Type

Standard

Browser Type

Any

Operation System Type

Any

Phone OS Type

Any

WhatsApp-Web.js Version

"whatsapp-web.js": "^1.26.0"

WhatsApp Web Version

2.3000.1019070444

Node.js Version

18.14.2

Authentication Strategy

LocalAuth

Additional Context

No response

@nikolasmagno nikolasmagno added the bug Something isn't working label Dec 24, 2024
@BenyFilho
Copy link
Contributor

First try update the lib
npm install [email protected]

@alechkos alechkos linked a pull request Dec 26, 2024 that will close this issue
7 tasks
@nikolasmagno
Copy link
Author

I tried and it didn't work, only group_join event its emitted

@nikolasmagno
Copy link
Author

@alechkos I already try using alpha.3 and still does not emitting (membrer) group_leave event (or another one), I'm using group_join to check members (users) that join in a comunity, but group_leave its not been emitt

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

Successfully merging a pull request may close this issue.

2 participants