mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-10 17:53:17 +00:00
Fixed ReplyKeyboardMarkup.insert method
This commit is contained in:
parent
bd8e1473c0
commit
5a905abe87
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ class ReplyKeyboardMarkup(base.TelegramObject):
|
|||
|
||||
:param button:
|
||||
"""
|
||||
if self.keyboard and len(self.keyboard[-1] < self.row_width):
|
||||
if self.keyboard and len(self.keyboard[-1]) < self.row_width:
|
||||
self.keyboard[-1].append(button)
|
||||
else:
|
||||
self.add(button)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue