Class KeyboardButton
Object
KeyboardButton
- All Implemented Interfaces:
Serializable,BotApiObject,Validable
- Version:
- 1.0 his object represents one button of the reply keyboard. At most one of the optional fields must be used to specify type of the button. For simple text buttons, String can be used instead of this object to specify the button text.
- Author:
- Ruben Bermudez
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate()Validates that mandatory fields are filled and optional objects
-
Constructor Details
-
KeyboardButton
public KeyboardButton()
-
-
Method Details
-
validate
Description copied from interface:ValidableValidates that mandatory fields are filled and optional objects- Specified by:
validatein interfaceValidable- Throws:
TelegramApiValidationException- If any mandatory field is empty
-