Class InlineKeyboardMarkup
java.lang.Object
io.github.natanimn.telebof.types.keyboard.InlineKeyboardMarkup
- All Implemented Interfaces:
Markup,Serializable
This object represents an inline keyboard that appears right next to the message it belongs to.
- Since:
- 3 March 2025
- Author:
- Natanim
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<List<InlineKeyboardButton>> Array of button rows, each represented by an Array ofInlineKeyboardButtonobjectsprivate int -
Constructor Summary
ConstructorsConstructorDescriptionInlineKeyboardMarkup(int rowWidth) InlineKeyboardMarkup(InlineKeyboardButton[] buttons) InlineKeyboardMarkup(InlineKeyboardButton[][] keyboard) InlineKeyboardMarkup(InlineKeyboardButton[] buttons, int rowWidth) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddButtons(InlineKeyboardButton[] buttons) voidaddKeyboard(InlineKeyboardButton... buttons) voidsetRowWidth(int rowWidth)
-
Field Details
-
inlineKeyboard
Array of button rows, each represented by an Array ofInlineKeyboardButtonobjects -
rowWidth
private transient int rowWidth
-
-
Constructor Details
-
InlineKeyboardMarkup
public InlineKeyboardMarkup() -
InlineKeyboardMarkup
public InlineKeyboardMarkup(int rowWidth) -
InlineKeyboardMarkup
-
InlineKeyboardMarkup
-
InlineKeyboardMarkup
-
-
Method Details
-
addKeyboard
-
addButtons
-
getInlineKeyboard
-
setRowWidth
public void setRowWidth(int rowWidth)
-