From 237f75c58d83a5483b341e4252b3301ab6c83591 Mon Sep 17 00:00:00 2001 From: Suren Khorenyan Date: Tue, 3 Apr 2018 11:39:03 +0300 Subject: [PATCH] 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 --- aiogram/types/reply_keyboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/types/reply_keyboard.py b/aiogram/types/reply_keyboard.py index e09ae4c4..8eda21f9 100644 --- a/aiogram/types/reply_keyboard.py +++ b/aiogram/types/reply_keyboard.py @@ -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)