public class ReplyKeyboardMarkup extends java.lang.Object implements ReplyMarkup
| Constructor and Description |
|---|
ReplyKeyboardMarkup(KeyboardButton[][] keyboard)
Constructs a ReplyKeyboardMarkup.
|
ReplyKeyboardMarkup(KeyboardButton[][] keyboard,
boolean resizeKeyboard,
boolean oneTimeKeyboard,
boolean selective)
Constructs a ReplyKeyboardMarkup.
|
ReplyKeyboardMarkup(java.lang.String[][] keyboard)
Constructs a ReplyKeyboardMarkup.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static ReplyKeyboardMarkup |
fromColumns(int columns,
boolean resizeKeyboard,
boolean oneTimeKeyboard,
boolean selective,
KeyboardButton... buttons)
Returns a ReplyKeyboardMarkup given the buttons and the
maximum number of columns in a row.
|
static ReplyKeyboardMarkup |
fromColumns(int columns,
boolean resizeKeyboard,
boolean oneTimeKeyboard,
boolean selective,
java.util.List<KeyboardButton> buttons)
Returns a ReplyKeyboardMarkup given the buttons and the
maximum number of columns in a row.
|
static ReplyKeyboardMarkup |
fromColumns(int columns,
KeyboardButton... buttons)
Returns a ReplyKeyboardMarkup given the buttons and the
maximum number of columns in a row.
|
static ReplyKeyboardMarkup |
fromColumns(int columns,
java.util.List<KeyboardButton> buttons)
Returns a ReplyKeyboardMarkup given the buttons and the
maximum number of columns in a row.
|
KeyboardButton[][] |
getKeyboard()
Getter for property
keyboard. |
int |
hashCode() |
boolean |
isOneTimeKeyboard()
Getter for property
oneTimeKeyboard. |
boolean |
isSelective()
Getter for property
selective. |
boolean |
resizeKeyboard()
Getter for property
resizeKeyboard. |
public ReplyKeyboardMarkup(KeyboardButton[][] keyboard, boolean resizeKeyboard, boolean oneTimeKeyboard, boolean selective)
keyboard - array of button rowsresizeKeyboard - if true resize vertically the keyboardoneTimeKeyboard - if true requests clients to hide the
keyboard as soon as it's been usedselective - set to true if you want to
show the keyboard to specific users onlypublic ReplyKeyboardMarkup(KeyboardButton[][] keyboard)
keyboard - array of button rowspublic ReplyKeyboardMarkup(java.lang.String[][] keyboard)
keyboard - array of button rowspublic static ReplyKeyboardMarkup fromColumns(int columns, boolean resizeKeyboard, boolean oneTimeKeyboard, boolean selective, KeyboardButton... buttons)
columns - the maximum number of columns in a rowresizeKeyboard - if true resize vertically the keyboardoneTimeKeyboard - if true requests clients to hide the
keyboard as soon as it's been usedselective - set to true if you want to
show the keyboard to specific users onlybuttons - the buttons of the keyboardpublic static ReplyKeyboardMarkup fromColumns(int columns, KeyboardButton... buttons)
columns - the maximum number of columns in a rowbuttons - the buttons of the keyboardpublic static ReplyKeyboardMarkup fromColumns(int columns, boolean resizeKeyboard, boolean oneTimeKeyboard, boolean selective, java.util.List<KeyboardButton> buttons)
columns - the maximum number of columns in a rowresizeKeyboard - if true resize vertically the keyboardoneTimeKeyboard - if true requests clients to hide the
keyboard as soon as it's been usedselective - set to true if you want to
show the keyboard to specific users onlybuttons - the buttons of the keyboardpublic static ReplyKeyboardMarkup fromColumns(int columns, java.util.List<KeyboardButton> buttons)
columns - the maximum number of columns in a rowbuttons - the buttons of the keyboardpublic KeyboardButton[][] getKeyboard()
keyboard.keyboardpublic boolean resizeKeyboard()
resizeKeyboard.resizeKeyboardpublic boolean isOneTimeKeyboard()
oneTimeKeyboard.oneTimeKeyboardpublic boolean isSelective()
selective.selectivepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object