Class KeyboardButton
Object
KeyboardButton
- All Implemented Interfaces:
Serializable,BotApiObject,Validable
- Version:
- 1.0 This object represents one button of the reply keyboard. For simple text buttons String can be used instead of this object to specify text of the button.
- 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
-