Keyboard bugfix

This commit is contained in:
Mr. Dog 2020-08-04 23:45:33 +05:00 committed by GitHub
parent 31e40d155b
commit ec79d1dc1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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