haskell-tdlib-2.1.14.0: Binding to the Telegram Database Library
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Query.ComposeTextWithAi

Synopsis

Documentation

data ComposeTextWithAi Source #

Changes text using an AI model; must not be used in secret chats. May return an error with a message AICOMPOSE_FLOOD_PREMIUM if Telegram Premium is required to send further requests. Returns FormattedText

Constructors

ComposeTextWithAi 

Fields

  • text :: Maybe FormattedText

    The original text

  • translate_to_language_code :: Maybe Text

    Pass a language code to which the text will be translated; pass an empty string if translation isn't needed. See translateText.to_language_code for the list of supported values

  • style_name :: Maybe Text

    Name of the style of the resulted text; handle updateTextCompositionStyles to get the list of supported styles; pass an empty string to keep the current style of the text

  • add_emojis :: Maybe Bool

    Pass true to add emoji to the text