Added method to join group (#417)

* Added method to join group

* Added method to join group in README
This commit is contained in:
Ibnu syawal
2021-03-24 17:49:00 +00:00
committed by GitHub
parent 389c409feb
commit 08bdb426c9
3 changed files with 17 additions and 1 deletions

View File

@@ -527,6 +527,12 @@ Of course, replace ``` xyz ``` with an actual ID.
// Or if you've left the group -- call this
const metadata2 = await conn.groupMetadataMinimal ("abcd-xyz@g.us")
```
- To join the group using the invitation code
``` ts
const response = await conn.acceptInvite ("xxx")
console.log("joined to: " + response.gid)
```
Of course, replace ``` xxx ``` with invitation code.
## Broadcast Lists & Stories