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

"getGroupInfoFromInviteLink" não mostra o ID correto da Comunidade #1723

Open
mvac1991 opened this issue Nov 28, 2023 · 1 comment
Open
Labels
bug Something isn't working needs triage

Comments

@mvac1991
Copy link

Description

Estou tentando fazer um envio de mensagem em comunidade pelo link de convite, mas ao chamar a função "getGroupInfoFromInviteLink " a mesma está trazendo um ID errado.

Environment

  • WPPConnect version(s): 2.2347.56
  • WA-JS version(s): 2.28.0
  • Browser: Chrome 119.0.6045.160
  • OS: Windows 10
  • Node version: Node 18.18.0
  • WhatsApp version: 2.23.23.79
  • MultiDevice (BETA): yes

Steps to Reproduce

  1. Chame a função "getGroupInfoFromInviteLink" e passe o CÓDIGO do link da comunidade de avisos;
  2. Pegue o ID retornado e tente chamar a função "sendText" para o ID retornado;
  3. Nada acontecerá.

Log Output

If relevant, paste all of your Log Output

Your Code

If relevant, paste all of your challenge code in here

Additional context / Screenshot

✅ Veja o ID da comunidade através do evento "onAnyMessage"

image

❌ Veja agora o ID (errado) gerado chamando a função "getGroupInfoFromInviteLink":

image

@mvac1991 mvac1991 added bug Something isn't working needs triage labels Nov 28, 2023
@icleitoncosta icleitoncosta transferred this issue from wppconnect-team/wppconnect Mar 9, 2024
@icleitoncosta
Copy link
Contributor

Hoje passei um tempo tentando resolver essa issue. Quando utilizarmos o getGroupInfoFromInviteLink em uma comunidade, ele retorna um grupo da comunidade, uma instância que tem os dados dela e subtype create, porém não a comunidade em si (ou seja, o grupo de anuncios), que é subtype community, em breve, vou tentar mais um pouco, e vejo se acho alguma parte do código que dá para pegarmos esse link do grupo de anuncios em si (comunidade).

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