Package org.drinkless.tdlib
Class TdApi.CreateRichMessageWithAi
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.RichMessage>
org.drinkless.tdlib.TdApi.CreateRichMessageWithAi
- Enclosing class:
- TdApi
Creates a new rich message using an AI model. May return an error with a message "AICOMPOSE_FLOOD_PREMIUM" if Telegram Premium is required to send further requests.
Returns RichMessage
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanPass true to add emoji to the text.static final intIdentifier uniquely determining type of the object.Pass a language code in which the text will be created.Prompt that will be used to create the message; 0-getOption("text_composition_style_prompt_length_max") characters. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which creates a new rich message using an AI model.CreateRichMessageWithAi(String prompt, String languageCode, boolean addEmojis) Creates a function, which creates a new rich message using an AI model. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
prompt
Prompt that will be used to create the message; 0-getOption("text_composition_style_prompt_length_max") characters. -
languageCode
Pass a language code in which the text will be created. -
addEmojis
public boolean addEmojisPass true to add emoji to the text. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
CreateRichMessageWithAi
public CreateRichMessageWithAi()Default constructor for a function, which creates a new rich message using an AI model. May return an error with a message "AICOMPOSE_FLOOD_PREMIUM" if Telegram Premium is required to send further requests.Returns
RichMessage -
CreateRichMessageWithAi
Creates a function, which creates a new rich message using an AI model. May return an error with a message "AICOMPOSE_FLOOD_PREMIUM" if Telegram Premium is required to send further requests.Returns
RichMessage- Parameters:
prompt- Prompt that will be used to create the message; 0-getOption("text_composition_style_prompt_length_max") characters.languageCode- Pass a language code in which the text will be created.addEmojis- Pass true to add emoji to the text.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-