From cd90d66c5ecd2525b1fe18dfd3bd7fc327208cfa Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Sun, 22 Nov 2020 22:00:23 +0530 Subject: [PATCH] Update group docs --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 94d7607..0d6f93a 100644 --- a/README.md +++ b/README.md @@ -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'