Added constructor for setting keyboard in the ReplyKeyboard types
This commit is contained in:
parent
f58def6326
commit
59958c57c0
@ -29,6 +29,11 @@ public class InlineKeyboardMarkup implements ReplyKeyboard {
|
||||
keyboard = new ArrayList<>();
|
||||
}
|
||||
|
||||
public InlineKeyboardMarkup(List<List<InlineKeyboardButton>> keyboard) {
|
||||
super();
|
||||
this.keyboard = keyboard;
|
||||
}
|
||||
|
||||
public List<List<InlineKeyboardButton>> getKeyboard() {
|
||||
return keyboard;
|
||||
}
|
||||
|
@ -43,6 +43,11 @@ public class ReplyKeyboardMarkup implements ReplyKeyboard {
|
||||
keyboard = new ArrayList<>();
|
||||
}
|
||||
|
||||
public ReplyKeyboardMarkup(List<KeyboardRow> keyboard) {
|
||||
super();
|
||||
this.keyboard = keyboard;
|
||||
}
|
||||
|
||||
public List<KeyboardRow> getKeyboard() {
|
||||
return keyboard;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user