Function promoteParticipants

  • Promote group member to admin

    Parameters

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

    Returns Promise<void>

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

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