Class MenuButton
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.objects.menubutton.MenuButton
-
- All Implemented Interfaces:
Serializable
,BotApiObject
,Validable
- Direct Known Subclasses:
MenuButtonCommands
,MenuButtonDefault
,MenuButtonWebApp
public abstract class MenuButton extends Object implements BotApiObject, Validable
- Version:
- 5.3 This object describes bot's menu button in a private chat. It should be one of MenuButtonCommands MenuButtonWebApp MenuButtonDefault If a menu button other than MenuButtonDefault is set for a private chat, then it is applied in the chat. Otherwise the default menu button is applied. By default, the menu button opens the list of bot's commands.
- Author:
- Ruben Bermudez
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
TYPE_FIELD
-
Constructor Summary
Constructors Constructor Description MenuButton()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract String
getType()
void
validate()
Validates that mandatory fields are filled and optional objects
-
-
-
Field Detail
-
TYPE_FIELD
public static final String TYPE_FIELD
- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public abstract String getType()
-
validate
public void validate() throws TelegramApiValidationException
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
-
-