Function removeParticipants

  • Remove participants of a group

    Parameters

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

    Returns Promise<void>

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

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