Class TdApi.AddTextCompositionStyle

Enclosing class:
TdApi

public static class TdApi.AddTextCompositionStyle extends TdApi.Function<TdApi.Ok>
Adds a custom text composition style to the list of used by the user styles. May return an error with a message "TONES_SAVED_TOO_MANY" if the maximum number of added custom styles has been reached.

Returns Ok

  • Field Details

    • name

      public String name
      Name of the style.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • AddTextCompositionStyle

      public AddTextCompositionStyle()
      Default constructor for a function, which adds a custom text composition style to the list of used by the user styles. May return an error with a message "TONES_SAVED_TOO_MANY" if the maximum number of added custom styles has been reached.

      Returns Ok

    • AddTextCompositionStyle

      public AddTextCompositionStyle(String name)
      Creates a function, which adds a custom text composition style to the list of used by the user styles. May return an error with a message "TONES_SAVED_TOO_MANY" if the maximum number of added custom styles has been reached.

      Returns Ok

      Parameters:
      name - Name of the style.
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Function<TdApi.Ok>
      Returns:
      this.CONSTRUCTOR