Class MenuButtonWebApp
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.objects.menubutton.MenuButton
-
- org.telegram.telegrambots.meta.api.objects.menubutton.MenuButtonWebApp
-
- All Implemented Interfaces:
Serializable,BotApiObject,Validable
public class MenuButtonWebApp extends MenuButton
- Version:
- 6.0 Represents menu button, which launches a web app.
- Author:
- Ruben Bermudez
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringTEXT_FIELDstatic StringWEBAPP_FIELD-
Fields inherited from class org.telegram.telegrambots.meta.api.objects.menubutton.MenuButton
TYPE_FIELD
-
-
Constructor Summary
Constructors Constructor Description MenuButtonWebApp()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetType()voidvalidate()Validates that mandatory fields are filled and optional objects
-
-
-
Field Detail
-
TEXT_FIELD
public static final String TEXT_FIELD
- See Also:
- Constant Field Values
-
WEBAPP_FIELD
public static final String WEBAPP_FIELD
- See Also:
- Constant Field Values
-
-
Method Detail
-
validate
public void validate() throws TelegramApiValidationExceptionDescription copied from interface:ValidableValidates that mandatory fields are filled and optional objects- Specified by:
validatein interfaceValidable- Overrides:
validatein classMenuButton- Throws:
TelegramApiValidationException- If any mandatory field is empty
-
getType
public String getType()
- Specified by:
getTypein classMenuButton
-
-