diff options
| author | levlam <levlam@telegram.org> | 2026-06-26 19:25:32 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2026-06-26 19:25:32 +0300 |
| commit | d46f319ac100701d19454797dd8cd8f87b122152 (patch) | |
| tree | 086fdb7d38a8570573303d4b90af9e0279e6a45e /td/generate | |
| parent | 75577103842d643ef888fddc44e8b410d6899d39 (diff) | |
Add composeRichMessageWithAi.custom_prompt.
Diffstat (limited to 'td/generate')
| -rw-r--r-- | td/generate/scheme/td_api.tl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index 0dc9ce3e6..289f3cae1 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -11941,12 +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 +//@description Changes rich messages using an AI model. 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 +//@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 or if a custom prompt is used +//@custom_prompt Custom prompt that will be used instead of style_name; 0-getOption("text_composition_style_prompt_length_max") characters //@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; +composeRichMessageWithAi message:inputRichMessage translate_to_language_code:string style_name:string custom_prompt: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 |
