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 getOption("added_text_composition_style_count_max") has been reached.

Returns Ok

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    Name of the style.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which adds a custom text composition style to the list of used by the user styles.
    Creates a function, which adds a custom text composition style to the list of used by the user styles.
  • 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.
    • 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 getOption("added_text_composition_style_count_max") 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 getOption("added_text_composition_style_count_max") 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.Object
      Returns:
      this.CONSTRUCTOR