Package org.drinkless.tdlib
Class TdApi.CreateTextCompositionStyle
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.TextCompositionStyle>
org.drinkless.tdlib.TdApi.CreateTextCompositionStyle
- Enclosing class:
TdApi
public static class TdApi.CreateTextCompositionStyle
extends TdApi.Function<TdApi.TextCompositionStyle>
Creates a custom text composition style. May return an error with a message "TONES_SAVED_TOO_MANY" if the maximum number of added custom styles has been reached.
Returns TextCompositionStyle
-
Nested Class Summary
Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.Function
TdApi.Function.Constructors -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.longIdentifier of the custom emoji corresponding to the style.Prompt that will be used for text composition; 1-getOption("text_composition_style_prompt_length_max") characters.booleanPass true if the current user must be shown as the creator of the style.Title of the style; 1-getOption("text_composition_style_title_length_max") characters. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which creates a custom text composition style.CreateTextCompositionStyle(String title, long customEmojiId, String prompt, boolean showCreator) Creates a function, which creates a custom text composition style. -
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
-
title
Title of the style; 1-getOption("text_composition_style_title_length_max") characters. -
customEmojiId
public long customEmojiIdIdentifier of the custom emoji corresponding to the style. -
prompt
Prompt that will be used for text composition; 1-getOption("text_composition_style_prompt_length_max") characters. -
showCreator
public boolean showCreatorPass true if the current user must be shown as the creator of the style. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
CreateTextCompositionStyle
public CreateTextCompositionStyle()Default constructor for a function, which creates a custom text composition style. May return an error with a message "TONES_SAVED_TOO_MANY" if the maximum number of added custom styles has been reached.Returns
TextCompositionStyle -
CreateTextCompositionStyle
public CreateTextCompositionStyle(String title, long customEmojiId, String prompt, boolean showCreator) Creates a function, which creates a custom text composition style. May return an error with a message "TONES_SAVED_TOO_MANY" if the maximum number of added custom styles has been reached.Returns
TextCompositionStyle- Parameters:
title- Title of the style; 1-getOption("text_composition_style_title_length_max") characters.customEmojiId- Identifier of the custom emoji corresponding to the style.prompt- Prompt that will be used for text composition; 1-getOption("text_composition_style_prompt_length_max") characters.showCreator- Pass true if the current user must be shown as the creator of the style.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Function<TdApi.TextCompositionStyle>- Returns:
- this.CONSTRUCTOR
-