mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
feat: approve, reject, list request join (#117)
This commit is contained in:
15
README.md
15
README.md
@@ -847,6 +847,21 @@ Of course, replace ``` xyz ``` with an actual ID.
|
||||
```
|
||||
Of course, replace ``` xxx ``` with invitation code.
|
||||
|
||||
- To get list request join
|
||||
``` ts
|
||||
const response = await sock.groupRequestParticipantsList("abcd-xyz@g.us")
|
||||
console.log(response)
|
||||
```
|
||||
- To approve/reject request join
|
||||
``` ts
|
||||
const response = await sock.groupRequestParticipantsUpdate(
|
||||
"abcd-xyz@g.us", // id group,
|
||||
["abcd@s.whatsapp.net", "efgh@s.whatsapp.net"],
|
||||
"approve" // replace this parameter with "reject"
|
||||
)
|
||||
console.log(response)
|
||||
```
|
||||
|
||||
## Privacy
|
||||
- To get the privacy settings
|
||||
``` ts
|
||||
|
||||
Reference in New Issue
Block a user