aboutsummaryrefslogtreecommitdiffhomepage
path: root/td/generate
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2026-06-26 19:01:51 +0300
committerlevlam <levlam@telegram.org>2026-06-26 19:01:51 +0300
commit72fd1cb9987526009bded1faa7aefc9e0f25a429 (patch)
treea8f86b11f77142f2588f1c6e7ca8606a8199414b /td/generate
parentc8105a16d1eea8a3209e13fe468617da5c999742 (diff)
Add td_api::composeRichMessageWithAi.
Diffstat (limited to 'td/generate')
-rw-r--r--td/generate/scheme/td_api.tl7
1 files changed, 7 insertions, 0 deletions
diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl
index 2323347a0..e5f89efff 100644
--- a/td/generate/scheme/td_api.tl
+++ b/td/generate/scheme/td_api.tl
@@ -11941,6 +11941,13 @@ summarizeMessage chat_id:int53 message_id:int53 translate_to_language_code:strin
//@add_emojis Pass true to add emoji to the text
composeTextWithAi text:formattedText translate_to_language_code:string style_name:string add_emojis:Bool = FormattedText;
+//@description Changes rich messages using an AI model; must not be used in secret chats. May return an error with a message "AICOMPOSE_FLOOD_PREMIUM" if Telegram Premium is required to send further requests
+//@message The original message
+//@translate_to_language_code Pass a language code to which the text will be translated; pass an empty string if translation isn't needed. See translateText.to_language_code for the list of supported values
+//@style_name Name of the style of the resulted text; handle updateTextCompositionStyles to get the list of supported styles; pass an empty string to keep the current style of the text
+//@add_emojis Pass true to add emoji to the text
+composeRichMessageWithAi message:inputRichMessage translate_to_language_code:string style_name:string add_emojis:Bool = RichMessage;
+
//@description Fixes text using an AI model; must not be used in secret chats. May return an error with a message "AICOMPOSE_FLOOD_PREMIUM" if Telegram Premium is required to send further requests
//@text The original text
fixTextWithAi text:formattedText = FixedText;