Package org.drinkless.tdlib
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 Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.StringtextText of the button.TdApi.KeyboardButtonTypetypeType of the button.
-
Constructor Summary
Constructors Constructor Description KeyboardButton()Represents a single button in a bot keyboard.KeyboardButton(String text, TdApi.KeyboardButtonType type)Represents a single button in a bot keyboard.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
text
public String text
Text of the button.
-
type
public TdApi.KeyboardButtonType type
Type of the button.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
KeyboardButton
public KeyboardButton()
Represents a single button in a bot keyboard.
-
KeyboardButton
public KeyboardButton(String text, TdApi.KeyboardButtonType type)
Represents a single button in a bot keyboard.- Parameters:
text- Text of the button.type- Type of the button.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-