messages.translateText

Translate a given text

 Method schema is available as of layer 137. Switch ยป

Parameters

Name Type Description
flags # Flags, see TL conditional fields
peer flags.0?InputPeer If the text is a chat message, the peer ID
msg_id flags.0?int If the text is a chat message, the message ID
text flags.1?string The text to translate
from_lang flags.2?string Two-letter ISO 639-1 language code of the language from which the message is translated, if not set will be autodetected
to_lang string Two-letter ISO 639-1 language code of the language to which the message is translated

Result

messages.TranslatedText

Bots can use this method