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
- 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:
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
TYPE_FIELD
- See Also:
-
-
Constructor Details
-
MenuButton
public MenuButton()
-
-
Method Details
-
getType
-
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
-