Class TdApi.KeyboardButton

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.KeyboardButton
Enclosing class:
TdApi

public static class TdApi.KeyboardButton extends TdApi.Object
Represents a single button in a bot keyboard.
  • Field Details

    • text

      public String text
      Text of the button.
    • iconCustomEmojiId

      public long iconCustomEmojiId
      Identifier of the custom emoji that must be shown on the button; 0 if none.
    • style

      public TdApi.ButtonStyle style
      Style of the button.
    • type

      Type of the button.
    • CONSTRUCTOR

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

    • KeyboardButton

      public KeyboardButton()
      Represents a single button in a bot keyboard.
    • KeyboardButton

      public KeyboardButton(String text, long iconCustomEmojiId, TdApi.ButtonStyle style, TdApi.KeyboardButtonType type)
      Represents a single button in a bot keyboard.
      Parameters:
      text - Text of the button.
      iconCustomEmojiId - Identifier of the custom emoji that must be shown on the button; 0 if none.
      style - Style of the button.
      type - Type of the button.
  • 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