Class KeyboardButtonPollType
java.lang.Object
org.telegram.telegrambots.meta.api.objects.replykeyboard.buttons.KeyboardButtonPollType
- All Implemented Interfaces:
Serializable
,BotApiObject
,Validable
- Version:
- 4.7 This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed.
- Author:
- Ruben Bermudez
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
validate()
Validates that mandatory fields are filled and optional objects
-
Constructor Details
-
KeyboardButtonPollType
public KeyboardButtonPollType()
-
-
Method Details
-
validate
Description copied from interface:Validable
Validates that mandatory fields are filled and optional objects- Specified by:
validate
in interfaceValidable
- Throws:
TelegramApiValidationException
- If any mandatory field is empty
-