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