- Enclosing class:
- TdApi
Translates a text to the given language.
Returns a 404 error if the translation
can't be performed.
Returns
Text
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
A two-letter ISO 639-1 language code of the language from which the message is translated.Text to translate.A two-letter ISO 639-1 language code of the language to which the message is translated. -
Constructor Summary
ConstructorDescriptionTranslates a text to the given language.TranslateText
(DataInput input) Translates a text to the given language.TranslateText
(String text, String fromLanguageCode, String toLanguageCode) Translates a text to the given language. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
text
Text to translate. -
fromLanguageCode
A two-letter ISO 639-1 language code of the language from which the message is translated. If empty, the language will be detected automatically. -
toLanguageCode
A two-letter ISO 639-1 language code of the language to which the message is translated. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
TranslateText
public TranslateText()Translates a text to the given language. Returns a 404 error if the translation can't be performed. ReturnsText
-
TranslateText
Translates a text to the given language. Returns a 404 error if the translation can't be performed. ReturnsText
- Parameters:
text
- String Text to translate.fromLanguageCode
- String A two-letter ISO 639-1 language code of the language from which the message is translated. If empty, the language will be detected automatically.toLanguageCode
- String A two-letter ISO 639-1 language code of the language to which the message is translated.
-
TranslateText
Translates a text to the given language. Returns a 404 error if the translation can't be performed. ReturnsText
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-