addOrRemoveLabels method
Add labels to specific chats
Implementation
Future addOrRemoveLabels({
required List<String> labelIds,
required List<String> chatIds,
}) async {
List<String> parsedChatIds = chatIds.map((e) => e.phoneParse).toList();
return await wpClient.evaluateJs(
'''window.WPP.labels.addOrRemoveLabels($labelIds, $parsedChatIds);''',
methodName: "addOrRemoveLabels",
);
}