Layer 224
method
messages.composeMessageWithAI#fd426afe flags:# proofread:flags.0?true emojify:flags.3?true text:TextWithEntities translate_to_lang:flags.1?string change_tone:flags.2?string = messages.ComposedMessageWithAI;

Parameters

Name Type Description
Proofread flags.0?true
Emojify flags.3?true
Text TextWithEntities
TranslateToLang flags.1?string
ChangeTone flags.2?string

Gogram Example

// MessagesComposeMessageWithAi - using Params struct
result, err := client.MessagesComposeMessageWithAi(&tg.MessagesComposeMessageWithAiParams{
    Text: &tg.TextWithEntities{},

    // Optional fields:
    // Proofread: true,
    // Emojify: true,
    // TranslateToLang: "Hello, World!",
    // ChangeTone: "Hello, World!",
})
if err != nil {
    // handle error
}
// result is *tg.MessagesComposedMessageWithAi