Class TdApi.TranslateMessageRichMessage

Enclosing class:
TdApi

public static class TdApi.TranslateMessageRichMessage extends TdApi.Function<TdApi.RichMessage>
Extracts rich message of the given message and translates it to the given language.

Returns RichMessage

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    long
    Identifier of the chat to which the message belongs.
    static final int
    Identifier uniquely determining type of the object.
    long
    Identifier of the message.
    Language code of the language to which the message is translated.
    Tone of the translation; see translateText.tone for the list of supported values.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which extracts rich message of the given message and translates it to the given language.
    TranslateMessageRichMessage(long chatId, long messageId, String toLanguageCode, String tone)
    Creates a function, which extracts rich message of the given message and translates it to the given language.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Function

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • chatId

      public long chatId
      Identifier of the chat to which the message belongs.
    • messageId

      public long messageId
      Identifier of the message.
    • 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

    • TranslateMessageRichMessage

      public TranslateMessageRichMessage()
      Default constructor for a function, which extracts rich message of the given message and translates it to the given language.

      Returns RichMessage

    • TranslateMessageRichMessage

      public TranslateMessageRichMessage(long chatId, long messageId, String toLanguageCode, String tone)
      Creates a function, which extracts rich message of the given message and translates it to the given language.

      Returns RichMessage

      Parameters:
      chatId - Identifier of the chat to which the message belongs.
      messageId - Identifier of the message.
      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