mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 09:55:21 +00:00
Fix ReplyKeyboardMarkup's add method
Fix when add method taking multiple buttons was adding one button to a new row and then adding items to rows according to row_width
This commit is contained in:
parent
edf6fda11c
commit
237f75c58d
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ class ReplyKeyboardMarkup(base.TelegramObject):
|
|||
:rtype: :obj:`types.ReplyKeyboardMarkup`
|
||||
"""
|
||||
row = []
|
||||
for index, button in enumerate(args):
|
||||
for index, button in enumerate(args, start=1):
|
||||
row.append(button)
|
||||
if index % self.row_width == 0:
|
||||
self.keyboard.append(row)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue