From ec79d1dc1ee1b5f0e377b58e2b97b45f64a46b6e Mon Sep 17 00:00:00 2001 From: "Mr. Dog" <68982655+mrpes@users.noreply.github.com> Date: Tue, 4 Aug 2020 23:45:33 +0500 Subject: [PATCH] Keyboard bugfix --- telebot/types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telebot/types.py b/telebot/types.py index 8446202..4ef068d 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -869,7 +869,7 @@ class ReplyKeyboardMarkup(JsonSerializable): :return: self, to allow function chaining. """ - return self.add(args, 12) + return self.add(*args, row_width=self.max_row_keys) def to_json(self): """ @@ -976,7 +976,7 @@ class InlineKeyboardMarkup(Dictionaryable, JsonSerializable): :return: self, to allow function chaining. """ - return self.add(args, 8) + return self.add(*args, row_width=self.max_row_keys) def to_json(self): """