Class InlineKeyboardButton.Builder
java.lang.Object
org.teleight.teleightbots.api.objects.InlineKeyboardButton.Builder
- Enclosing class:
InlineKeyboardButton
-
Method Summary
Modifier and TypeMethodDescriptionbuild()callback(BiConsumer<ButtonPressEvent, User> callback) callbackData(@Nullable String callbackData) callbackGame(@Nullable CallbackGame callbackGame) copyText(@Nullable CopyTextButton copyText) destinationMenu(Menu destinationMenu) iconCustomEmojiId(@Nullable String iconCustomEmojiId) pay(boolean pay) style(@Nullable KeyboardButtonStyle style) switchInlineQuery(@Nullable String switchInlineQuery) switchInlineQueryChosenChat(@Nullable SwitchInlineQueryChosenChat switchInlineQueryChosenChat) switchInlineQueryCurrentChat(@Nullable String switchInlineQueryCurrentChat) toString()webApp(@Nullable WebAppInfo webApp)
-
Method Details
-
text
- Returns:
this.
-
iconCustomEmojiId
- Returns:
this.
-
style
- Returns:
this.
-
url
- Returns:
this.
-
callbackData
- Returns:
this.
-
webApp
- Returns:
this.
-
loginUrl
- Returns:
this.
-
switchInlineQuery
- Returns:
this.
-
switchInlineQueryCurrentChat
public InlineKeyboardButton.Builder switchInlineQueryCurrentChat(@Nullable @Nullable String switchInlineQueryCurrentChat) - Returns:
this.
-
switchInlineQueryChosenChat
public InlineKeyboardButton.Builder switchInlineQueryChosenChat(@Nullable @Nullable SwitchInlineQueryChosenChat switchInlineQueryChosenChat) - Returns:
this.
-
copyText
- Returns:
this.
-
callbackGame
- Returns:
this.
-
pay
- Returns:
this.
-
callback
- Returns:
this.
-
build
-
toString
-