From 96ebee26e4f492615af46068165dfe6b3f7f107f Mon Sep 17 00:00:00 2001 From: Nikita <78080842+NiKuma0@users.noreply.github.com> Date: Tue, 30 Aug 2022 01:24:50 +0300 Subject: [PATCH] Refactor: inline keboard row (#980) * Refactor: just removed some bad code... * Fix: tuple to list * FIx: type error * Update aiogram/types/inline_keyboard.py Co-authored-by: Evgen Fil Co-authored-by: Evgen Fil --- aiogram/types/inline_keyboard.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/aiogram/types/inline_keyboard.py b/aiogram/types/inline_keyboard.py index 16d97e58..1019d88f 100644 --- a/aiogram/types/inline_keyboard.py +++ b/aiogram/types/inline_keyboard.py @@ -55,16 +55,15 @@ class InlineKeyboardMarkup(base.TelegramObject): self.inline_keyboard.append(row) return self - def row(self, *args): + def row(self, *buttons): """ Add row - :param args: + :param buttons: :return: self :rtype: :obj:`types.InlineKeyboardMarkup` """ - btn_array = [button for button in args] - self.inline_keyboard.append(btn_array) + self.inline_keyboard.append(list(buttons)) return self def insert(self, button):