Package org.drinkless.tdlib
Class TdApi.TranslateRichMessage
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.RichMessage>
org.drinkless.tdlib.TdApi.TranslateRichMessage
- Enclosing class:
- TdApi
Translates a rich message to the given language.
Returns RichMessage
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.Rich message to translate.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 translates a rich message to the given language.TranslateRichMessage(TdApi.InputRichMessage message, String toLanguageCode, String tone) Creates a function, which translates a rich message 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
-
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. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier 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
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.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-