Class TdApi.EditTextCompositionStyle

Enclosing class:
TdApi

public static class TdApi.EditTextCompositionStyle extends TdApi.Function<TdApi.TextCompositionStyle>
Edits a custom text composition style that was created by the current user.

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.
    Name of 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 edits a custom text composition style that was created by the current user.
    EditTextCompositionStyle(String name, String title, long customEmojiId, String prompt, boolean showCreator)
    Creates a function, which edits a custom text composition style that was created by the current user.
  • 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

    • name

      public String name
      Name of the style.
    • 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

    • EditTextCompositionStyle

      public EditTextCompositionStyle()
      Default constructor for a function, which edits a custom text composition style that was created by the current user.

      Returns TextCompositionStyle

    • EditTextCompositionStyle

      public EditTextCompositionStyle(String name, String title, long customEmojiId, String prompt, boolean showCreator)
      Creates a function, which edits a custom text composition style that was created by the current user.

      Returns TextCompositionStyle

      Parameters:
      name - Name of the style.
      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