composeMessageWithAI method
Future<Result<MessagesComposedMessageWithAIBase> >
composeMessageWithAI({
- required bool proofread,
- required bool emojify,
- required TextWithEntitiesBase text,
- String? translateToLang,
- 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>();
}