Function demoteParticipants

  • Remove admin of a group

    Parameters

    • groupId: string | Wid
    • participantsIds: string | Wid | (string | Wid)[]

    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']);