mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-09 17:33:44 +00:00
Merge branch 'dev-1.x' of github.com:aiogram/aiogram into dev-1.x
This commit is contained in:
commit
8854e0c53c
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ class InlineKeyboardMarkup(base.TelegramObject):
|
|||
:return: self
|
||||
:rtype: :obj:`types.InlineKeyboardMarkup`
|
||||
"""
|
||||
if self.inline_keyboard and len(self.inline_keyboard[-1] < self.row_width):
|
||||
if self.inline_keyboard and len(self.inline_keyboard[-1]) < self.row_width:
|
||||
self.inline_keyboard[-1].append(button)
|
||||
else:
|
||||
self.add(button)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue