Class 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

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    long
    Identifier 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.
    boolean
    Pass 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

    Constructors
    Constructor
    Description
    Default 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 Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Function

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • title

      public String title
      Title of the style; 1-getOption("text_composition_style_title_length_max") characters.
    • customEmojiId

      public long customEmojiId
      Identifier of the custom emoji corresponding to the style.
    • prompt

      public String prompt
      Prompt that will be used for text composition; 1-getOption("text_composition_style_prompt_length_max") characters.
    • showCreator

      public boolean showCreator
      Pass true if the current user must be shown as the creator of the style.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier 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