diff options
| author | levlam <levlam@telegram.org> | 2026-06-26 12:10:08 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2026-06-26 12:10:08 +0300 |
| commit | 825a1532db8475eef086f0d6773e7a35dd976b2f (patch) | |
| tree | 6acd3283db7c654a15f7822e28ac3b2b532bdfcd /td/generate | |
| parent | 62ee5b15e90acfce4e78d3596edf758f599189e8 (diff) | |
Add td_api::translateRichMessage.
Diffstat (limited to 'td/generate')
| -rw-r--r-- | td/generate/scheme/td_api.tl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index c712b229a..6bb416c9e 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -11908,6 +11908,12 @@ removeTextCompositionStyle name:string = Ok; //@tone Tone of the translation; must be one of "", "formal", "neutral", "casual"; defaults to "neutral" translateText text:formattedText to_language_code:string tone:string = FormattedText; +//@description Translates a rich message to the given language +//@message Rich message to translate +//@to_language_code Language code of the language to which the message is translated. See translateText.to_language_code for the list of supported values +//@tone Tone of the translation; must be one of "", "formal", "neutral", "casual"; defaults to "neutral" +translateRichMessage message:inputRichMessage to_language_code:string tone:string = RichMessage; + //@description 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 //@chat_id Identifier of the chat to which the message belongs //@message_id Identifier of the message |
