compose_rich_message_with_ai()¶
- async Client.compose_rich_message_with_ai()¶
Use AI to compose, proofread, translate or emojify a rich text message.
Usable by Users Bots- Parameters:
text (
InputRichMessage|str|InputRichMessage, optional) – The input rich text to process.translate_to_lang (
str, optional) – Target language code to translate to.tone (
str|InputAiComposeTone, optional) – The tone/style to use for composition.proofread (
bool, optional) – If True, proofread the text.emojify (
bool, optional) – If True, add relevant emojis.
- Returns:
RichMessage– The AI-composed rich message.
Example
result = await app.compose_rich_message_with_ai( text="Hello world", proofread=True )