Merge pull request #709 from recursiveribbons/keyboard-constructors
Added constructor for setting keyboard in the ReplyKeyboard types
This commit is contained in:
commit
e4b4c07e84
|
@ -29,6 +29,11 @@ public class InlineKeyboardMarkup implements ReplyKeyboard {
|
||||||
keyboard = new ArrayList<>();
|
keyboard = new ArrayList<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public InlineKeyboardMarkup(List<List<InlineKeyboardButton>> keyboard) {
|
||||||
|
super();
|
||||||
|
this.keyboard = keyboard;
|
||||||
|
}
|
||||||
|
|
||||||
public List<List<InlineKeyboardButton>> getKeyboard() {
|
public List<List<InlineKeyboardButton>> getKeyboard() {
|
||||||
return keyboard;
|
return keyboard;
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,6 +43,11 @@ public class ReplyKeyboardMarkup implements ReplyKeyboard {
|
||||||
keyboard = new ArrayList<>();
|
keyboard = new ArrayList<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ReplyKeyboardMarkup(List<KeyboardRow> keyboard) {
|
||||||
|
super();
|
||||||
|
this.keyboard = keyboard;
|
||||||
|
}
|
||||||
|
|
||||||
public List<KeyboardRow> getKeyboard() {
|
public List<KeyboardRow> getKeyboard() {
|
||||||
return keyboard;
|
return keyboard;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user