| Package | Description |
|---|---|
| pro.zackpollard.telegrambot.api.keyboards |
| Modifier and Type | Method and Description |
|---|---|
static InlineKeyboardButton.InlineKeyboardButtonBuilder |
InlineKeyboardButton.builder()
This builder will allow you to progressively construct this object.
|
InlineKeyboardButton.InlineKeyboardButtonBuilder |
InlineKeyboardButton.InlineKeyboardButtonBuilder.callbackData(String callbackData)
*Optional*
Sets the data to be sent in a callback query to the bot when button is pressed, 1-64 bytes
|
InlineKeyboardButton.InlineKeyboardButtonBuilder |
InlineKeyboardButton.InlineKeyboardButtonBuilder.callbackGame(CallbackGame callbackGame)
*Optional*
Sets the CallbackGame object that will be sent with this button.
|
InlineKeyboardButton.InlineKeyboardButtonBuilder |
InlineKeyboardButton.InlineKeyboardButtonBuilder.switchInlineQuery(String switchInlineQuery)
*Optional*
Sets the inline query switch text.
|
InlineKeyboardButton.InlineKeyboardButtonBuilder |
InlineKeyboardButton.InlineKeyboardButtonBuilder.switchInlineQueryCurrentChat(String switchInlineQueryCurrentChat)
*Optional*
If set, pressing the button will insert the bot‘s username and the specified inline query in the current
chat's input field.
|
InlineKeyboardButton.InlineKeyboardButtonBuilder |
InlineKeyboardButton.InlineKeyboardButtonBuilder.text(String text)
*Required*
Sets the text that will be displayed on this button
|
InlineKeyboardButton.InlineKeyboardButtonBuilder |
InlineKeyboardButton.InlineKeyboardButtonBuilder.url(String url)
*Optional*
Sets the HTTP url to be opened when button is pressed
|
Copyright © 2017. All rights reserved.