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

Função onParticipantsChanged não esta funcionando #864

Closed
jtapeg opened this issue Feb 8, 2022 · 4 comments
Closed

Função onParticipantsChanged não esta funcionando #864

jtapeg opened this issue Feb 8, 2022 · 4 comments
Labels
bug Something isn't working needs triage question Further information is requested

Comments

@jtapeg
Copy link

jtapeg commented Feb 8, 2022

Notei que a função onParticipantsChanged não esta funcionando com nenhum evento mais
Exemplo do codigo usado nos testes:

client.onParticipantsChanged(async (event) => {
    console.log("onParticipantsChanged\n", event);
});
  • WPPConnect version(s): 1.12.5
  • WA-JS version(s): 1.1.16
  • Browser: Chrome 97
  • OS: CentOs 7
  • Node version: Node 16
  • WhatsApp version: 2.2202.12
  • MultiDevice (BETA): yes
@jtapeg jtapeg added bug Something isn't working needs triage labels Feb 8, 2022
@edgardmessias
Copy link
Contributor

edgardmessias commented Feb 16, 2022

Poderia verificar se no onNotification está chegando eventos do tipo 'gp2'?

@edgardmessias edgardmessias added the question Further information is requested label Feb 16, 2022
@jtapeg
Copy link
Author

jtapeg commented Feb 16, 2022

Não esta mas, essa função voltou a funcionar em uma versão mais antiga do whatsapp!

@edgardmessias
Copy link
Contributor

edgardmessias commented Feb 16, 2022

Certo, esses eventos dependem diretamente das mensagens, pois existem outros tipos de mensagem (type e subtype), e a partir deles que é feito esses eventos do grupo.

Coloque para escutar o evento onMessage para testes

@megustalol
Copy link
Contributor

Nessa mesma onParticipantsChanged, não estou recebendo os eventos de entrada/saida de membros do grupo, simplesmente não acontece nada

client.onParticipantsChanged(async (participants) => {
console.log(participants)
if(participants.action == 'remove' || participants.action == 'leave') return;
})

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 question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants