sendCustomMemo method

Future<void> sendCustomMemo(
  1. {required int templateId,
  2. Map<String, String>? templateArgs}
)

카카오디벨로퍼스에서 생성한 서비스만의 커스텀 메시지 템플릿을 사용하여, 카카오톡의 나와의 채팅방으로 메시지 전송

템플릿을 생성하는 방법은 메시지 템플릿 가이드 참고

Implementation

Future<void> sendCustomMemo({
  required int templateId,
  Map<String, String>? templateArgs,
}) async {
  final params = {
    Constants.templateId: templateId,
    "template_args": templateArgs == null ? null : jsonEncode(templateArgs)
  };
  return _memo("", params);
}