1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Merge pull request #939 from mrpes/patch-6

Keyboard bugfix
This commit is contained in:
Badiboy
2020-08-04 22:03:00 +03:00
committed by GitHub

View File

@@ -869,7 +869,7 @@ class ReplyKeyboardMarkup(JsonSerializable):
:return: self, to allow function chaining. :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): def to_json(self):
""" """
@@ -976,7 +976,7 @@ class InlineKeyboardMarkup(Dictionaryable, JsonSerializable):
:return: self, to allow function chaining. :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): def to_json(self):
""" """