This commit is contained in:
@@ -24,9 +24,7 @@ public class PengradKeyboardBuilder implements KeyboardBuilder {
|
||||
return new KeyboardImpl(keyboard, null);
|
||||
}
|
||||
if (inlineKeyboard != null) {
|
||||
InlineKeyboardButton[][] smallerArray = new InlineKeyboardButton[inlineKeyboard.length - 1][];
|
||||
System.arraycopy(inlineKeyboard, 0, smallerArray, 0, inlineKeyboard.length - 1);
|
||||
return new KeyboardImpl(null, smallerArray);
|
||||
return new KeyboardImpl(null, inlineKeyboard);
|
||||
}
|
||||
return new NoKeyboard();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user