sendDefaultMessage method
- required List<
String> receiverUuids, - required DefaultTemplate template,
KO: 친구에게 기본 템플릿으로 메시지 발송
receiverUuids에 수신자 UUID 전달
template에 메시지 템플릿 객체 전달
EN: Send message with default template to friends
Pass the receiver UUIDs to receiverUuids
Pass an object of a message template to template
Implementation
Future<MessageSendResult> sendDefaultMessage({
required List<String> receiverUuids,
required DefaultTemplate template,
}) {
SdkLog.d(
'[TalkApi.sendDefaultMessage] started | receiverCount=${receiverUuids.length} templateType=${template.runtimeType}',
);
return _sendMessage(
pathPart: Constants.defaultPath,
params: {
Constants.receiverUuids: jsonEncode(receiverUuids),
Constants.templateObject: jsonEncode(template),
},
);
}