Package org.drinkless.tdlib
Class TdApi.TranslateMessageRichMessage
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.RichMessage>
org.drinkless.tdlib.TdApi.TranslateMessageRichMessage
- Enclosing class:
- TdApi
Extracts rich message of the given message and translates it to the given language.
Returns RichMessage
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongIdentifier of the chat to which the message belongs.static final intIdentifier uniquely determining type of the object.longIdentifier 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
ConstructorsConstructorDescriptionDefault 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 TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
chatId
public long chatIdIdentifier of the chat to which the message belongs. -
messageId
public long messageIdIdentifier 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. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier 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
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.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-