This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
InlineMenuBuilder builder = InlineMenu.builder(bot, event.getChat()) | |
.allowedUser(event.getMessage().getSender()) | |
.message(SendableTextMessage.markdown("*Cool Message*")) | |
.newRow() | |
.toggleButton() | |
.toggleCallback((button, newValue) -> "The value is " + newValue) | |
.newRow() | |
.inputButton("Click for name") | |
.buttonCallback((button) -> "Send me your name as a text!") | |
.textCallback((button, input) -> button.setText("Your name is " + input)) |