removeParticipants method

Future removeParticipants({
  1. required String groupId,
  2. required List<String> phoneNumbers,
})

To reomve participants from a group

Implementation

Future removeParticipants({
  required String groupId,
  required List<String> phoneNumbers,
}) async {
  final parseList = jsonEncode(phoneNumbers.map(parsePhone).toList());
  return await wpClient.evaluateJs(
    '''window.WPP.group.removeParticipants(${groupId.groupParse}, $parseList);''',
    methodName: "removeParticipants",
  );
}