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

TD.Query.TranslateMessageText

Synopsis

Documentation

data TranslateMessageText Source #

Extracts text or caption of the given message and translates it to the given language; must not be used in secret chats. If the current user is a Telegram Premium user, then text formatting is preserved. Returns FormattedText

Constructors

TranslateMessageText 

Fields

  • chat_id :: Maybe Int

    Identifier of the chat to which the message belongs

  • message_id :: Maybe Int

    Identifier of the message

  • to_language_code :: Maybe Text

    Language code of the language to which the message is translated. See translateText.to_language_code for the list of supported values

  • tone :: Maybe Text

    Tone of the translation; see translateText.tone for the list of supported values