messages.TranslateText¶
- class pyrogram.raw.functions.messages.TranslateText[source]¶
Translate a given text.
Usable by Users Bots- Details:
Layer:
229ID:
A5EEC345
- Parameters:
to_lang (
str) – Two-letter ISO 639-1 language code of the language to which the message is translatedpeer (
InputPeer, optional) – If the text is a chat message, the peer IDid (List of
int32-bit, optional) – A list of message IDs to translatetext (List of
TextWithEntities, optional) – A list of styled messages to translatetone (
str, optional) – If set, rephrases the translation using the specified AI composer tone » (pass the tone identifier)
- Returns: