customMessage method

Future<MessageSendResult> customMessage(
  1. List<String> receiverUuids,
  2. int templateId, {
  3. Map<String, String>? templateArgs,
})

Implementation

Future<MessageSendResult> customMessage(
    List<String> receiverUuids, int templateId,
    {Map<String, String>? templateArgs}) async {
  final params = {
    "receiver_uuids": jsonEncode(receiverUuids),
    "template_id": templateId,
    "template_args": templateArgs == null ? null : jsonEncode(templateArgs)
  };
  return _message("", params);
}