@wppconnect-team/wppconnect - v1.36.4
    Preparing search index...

    Function demoteParticipants

    • Remove admin of a group

      Parameters

      Returns Promise<void>

      // One member
      await WPP.group.demoteParticipants('123456@g.us', '123456@c.us');

      // More than one member
      await WPP.group.demoteParticipants('123456@g.us', ['123456@c.us','123456@c.us']);