messages.composeMessageWithAI

Invokes telegram's AI Editor that can translate, transform, fixup and/or emojify your message in a number of different ways, privately powered by Cocoon, see here » for more info!

All of the modes specified below can be combined.

 Method schema is available as of layer 225. Switch »

Parameters

Name Type Description
flags # Flags, see TL conditional fields
proofread flags.0?true If set, proofreads and fixes mistakes in the message
emojify flags.3?true If set, adds emojis to the message
text TextWithEntities The message
translate_to_lang flags.1?string If set, translates the message to the specified language
tone flags.2?InputAiComposeTone If set, rephrases the message using the specified AI composer tone »

Result

messages.ComposedMessageWithAI

Only users can use this method

Possible errors

Code Type Description
500 AICOMPOSE_TIMEOUT A timeout occurred while composing the message.
400 AI_COMPOSE_TASK_MISSING  
400 MESSAGE_EMPTY The provided message is empty.

Related pages

AI features

Telegram offers many AI features powered by Cocoon — a decentralized network designed to maximize privacy.