API improvements
continuous-integration/drone/push Build is passing

This commit is contained in:
ruslan committed 2021-09-10 19:19:50 +03:00
1 parent 24b15ca4fe
commit c5806b6b45
4 files changed
+13 -3

No files matched your search

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