mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Merge pull request #31 from surik00/dev-1.x
Fix ReplyKeyboardMarkup's add method
This commit is contained in:
commit
c143d82023
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