mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-06 07:50:32 +00:00
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 <evgfilim1@yandex.ru> Co-authored-by: Evgen Fil <evgfilim1@yandex.ru>
This commit is contained in:
parent
87a8b50949
commit
96ebee26e4
1 changed files with 3 additions and 4 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue