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!
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](https://cocoon.org), see [here »](https://core.telegram.org/api/ai.md#compose-messages) for more info!
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
proofread | true | いいえ | If set, proofreads and fixes mistakes in the message |
emojify | true | いいえ | If set, adds emojis to the message |
text | TextWithEntities | はい | メッセージ |
translate_to_lang | string | いいえ | If set, translates the message to the specified language |
tone | InputAiComposeTone | いいえ | If set, rephrases the message using the specified [AI composer tone »](https://core.telegram.org/api/ai.md#ai-compose-tones) |
レスポンス
messages.ComposedMessageWithAI
MTProto RPC
- 400 · AICOMPOSE_FLOOD_PREMIUM — You've reached the daily limit of AI text transformations, upgrade to [Telegram Premium](https://core.telegram.org/api/premium.md) to get **50x** times more AI text transformations per day!
- 500 · AICOMPOSE_TIMEOUT — A timeout occurred while composing the message.
- 400 · AI_COMPOSE_TASK_MISSING — No AI task was specified. The caller must provide at least one of: proofread, translate (with a target language), tone, or emojify.
- 400 · MESSAGE_EMPTY — The provided message is empty.