mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 10:11:52 +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:
|
: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)
|
self.keyboard[-1].append(button)
|
||||||
else:
|
else:
|
||||||
self.add(button)
|
self.add(button)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue