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