translateMessageText¶
Extracts text or caption of the given message and translates it to the given language; must not be used in secret chats. If the current user is a Telegram Premium user, then text formatting is preserved
translateMessageText(
chat_id: int53,
message_id: int53,
to_language_code: string,
tone: string
) → FormattedText
chat_id¶
int53
Identifier of the chat to which the message belongs
message_id¶
int53
Identifier of the message
to_language_code¶
string
Language code of the language to which the message is translated. See translateText.to_language_code for the list of supported values
tone¶
string
Tone of the translation; see translateText.tone for the list of supported values