sendCustomMessage method
- required List<
String> receiverUuids, - required int templateId,
- Map<
String, String> ? templateArgs,
KO: 친구에게 사용자 정의 템플릿으로 메시지 발송
receiverUuids에 수신자 UUID 전달
templateId에 메시지 템플릿 ID 전달
templateArgs에 사용자 인자 전달
EN: Send message with custom template to friends
Pass the receiver UUIDs to receiverUuids
Pass the message template ID to templateId
Pass the user arguments to templateArgs
Implementation
Future<MessageSendResult> sendCustomMessage({
required List<String> receiverUuids,
required int templateId,
Map<String, String>? templateArgs,
}) {
SdkLog.d(
'[TalkApi.sendCustomMessage] started | receiverCount=${receiverUuids.length} templateId=$templateId templateArgsCount=${templateArgs?.length ?? 0}',
);
return _sendMessage(
pathPart: '',
params: {
Constants.receiverUuids: jsonEncode(receiverUuids),
Constants.templateId: templateId,
Constants.templateArgs: ?templateArgs?.toJson(),
},
);
}