Update group docs

This commit is contained in:
Adhiraj Singh
2020-11-22 22:00:23 +05:30
parent 698e248076
commit cd90d66c5e

View File

@@ -435,6 +435,14 @@ Of course, replace ``` xyz ``` with an actual ID.
await conn.groupMakeAdmin ("abcd-xyz@g.us", ["abcd@s.whatsapp.net", "efgh@s.whatsapp.net"])
await conn.groupDemoteAdmin ("abcd-xyz@g.us", ["abcd@s.whatsapp.net", "efgh@s.whatsapp.net"]) // demote admins
```
- To change the group's subject
``` ts
await conn.groupUpdateSubject("abcd-xyz@g.us", "New Subject!")
```
- To change the group's description
``` ts
await conn.groupUpdateDescription("abcd-xyz@g.us", "This group has a new description")
```
- To change group settings
``` ts
import { GroupSettingChange } from '@adiwajshing/baileys'