API improvements
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-09-10 19:19:50 +03:00
parent 24b15ca4fe
commit c5806b6b45
4 changed files with 13 additions and 3 deletions

View File

@@ -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();
}