Class TdApi.TranslateRichMessage

Enclosing class:
TdApi

public static class TdApi.TranslateRichMessage extends TdApi.Function<TdApi.RichMessage>
Translates a rich message to the given language.

Returns RichMessage

  • Field Details

    • message

      public TdApi.InputRichMessage message
      Rich message to translate.
    • toLanguageCode

      public String toLanguageCode
      Language code of the language to which the message is translated. See translateText.toLanguageCode for the list of supported values.
    • tone

      public String tone
      Tone of the translation; see translateText.tone for the list of supported values.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • TranslateRichMessage

      public TranslateRichMessage()
      Default constructor for a function, which translates a rich message to the given language.

      Returns RichMessage

    • TranslateRichMessage

      public TranslateRichMessage(TdApi.InputRichMessage message, String toLanguageCode, String tone)
      Creates a function, which translates a rich message to the given language.

      Returns RichMessage

      Parameters:
      message - Rich message to translate.
      toLanguageCode - Language code of the language to which the message is translated. See translateText.toLanguageCode for the list of supported values.
      tone - Tone of the translation; see translateText.tone for the list of supported values.
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR