Keyboard bugfix

This commit is contained in:
Mr. Dog
2020-08-04 23:45:33 +05:00
committed by GitHub
parent 31e40d155b
commit ec79d1dc1e

View File

@@ -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):
"""