composeMessageWithAI method

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

Compose Message With A I.

ID: daecc589.

Implementation

Future<Result<MessagesComposedMessageWithAIBase>> composeMessageWithAI({
  required bool proofread,
  required bool emojify,
  required TextWithEntitiesBase text,
  String? translateToLang,
  InputAiComposeToneBase? tone,
}) async {
  // Preparing the request.
  final request = MessagesComposeMessageWithAI(
    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<MessagesComposedMessageWithAIBase>();
}