composeRichMessageWithAI method

Future<Result<MessagesComposedRichMessageWithAIBase>> composeRichMessageWithAI({
  1. required bool proofread,
  2. required bool emojify,
  3. InputRichMessageBase? text,
  4. String? translateToLang,
  5. InputAiComposeToneBase? tone,
})

Compose Rich Message With A I.

ID: 8d7ae6af.

Implementation

Future<Result<MessagesComposedRichMessageWithAIBase>>
    composeRichMessageWithAI({
  required bool proofread,
  required bool emojify,
  InputRichMessageBase? text,
  String? translateToLang,
  InputAiComposeToneBase? tone,
}) async {
  // Preparing the request.
  final request = MessagesComposeRichMessageWithAI(
    proofread: proofread,
    emojify: emojify,
    text: text,
    translateToLang: translateToLang,
    tone: tone,
  );

  // Invoke and wait for response.
  final response = await _c.invoke(request);

  // Return the result.
  return response._to<MessagesComposedRichMessageWithAIBase>();
}