Class MenuButton
java.lang.Object
io.github.natanimn.telebof.types.keyboard.MenuButton
- All Implemented Interfaces:
- Serializable
This object describes the bot's menu button in a private chat.
- Since:
- 3 March 2025
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Field Details- 
type
- 
text
- 
web_app
 
- 
- 
Constructor Details- 
MenuButton
 
- 
- 
Method Details- 
textOptional- Parameters:
- text- Web app text on the button
- Returns:
- MenuButton
 
- 
webAppOptional- Parameters:
- web_app- Description of the Web App that will be launched when the user presses the button. The Web App will be able to send an arbitrary message on behalf of the user using the method- BotContext.answerWebAppQuery(String, InlineQueryResult). Alternatively, a t.me link to a Web App of the bot can be specified in the object instead of the Web App's URL, in which case the Web App will be opened as if the user pressed the link.
- Returns:
- MenuButton
 
 
-