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

Error While Joining Group via Invite Code #1530

Closed
raajrushs opened this issue Dec 4, 2023 · 5 comments
Closed

Error While Joining Group via Invite Code #1530

raajrushs opened this issue Dec 4, 2023 · 5 comments
Labels
needs triage question Further information is requested

Comments

@raajrushs
Copy link

As par the documentations , I am trying to add member in my group But because of target members Privacy it shows
'Can't join this group because the number was restricted it'

image

Now I am getting same Invite code and Send it via simple text message

image

Message Sent successfully,
image

But Problem is When target person try to Join Group, it shows 'The Group Does Not Exists'

image

Is there any way to send Invitation to Target Number like below image ?

image

@raajrushs raajrushs added needs triage question Further information is requested labels Dec 4, 2023
@icleitoncosta
Copy link
Contributor

Hello, I tried to reproduce this error, but without success. Could you retry the test, generating a new invitation code for the group and going through the steps where the error occurred?

@raajrushs
Copy link
Author

https://wppconnect.io/wa-js/functions/group.addParticipants.html

const result = await WPP.group.addParticipants('[group@g.us]', [number@c.us]);
const link = 'https://chat.whatsapp.com/' + result['123@c.us'].invite_code;

WPP.chat.sendTextMessage('[number]@c.us', link );

Is this 'invite_code' here for that particular number, Is really working ? I am not talking about Global Group Link

@edgardmessias
Copy link
Contributor

They changed the way to do this.

We need to create a new type of message and use this code to send it.

@raajrushs
Copy link
Author

what is inviteGrp: '789@generator.us' ?

@raajrushs
Copy link
Author

Its working Perfectly . Thanks @edgardmessias

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants