mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +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)
|
self.inline_keyboard.append(row)
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def row(self, *args):
|
def row(self, *buttons):
|
||||||
"""
|
"""
|
||||||
Add row
|
Add row
|
||||||
|
|
||||||
:param args:
|
:param buttons:
|
||||||
:return: self
|
:return: self
|
||||||
:rtype: :obj:`types.InlineKeyboardMarkup`
|
:rtype: :obj:`types.InlineKeyboardMarkup`
|
||||||
"""
|
"""
|
||||||
btn_array = [button for button in args]
|
self.inline_keyboard.append(list(buttons))
|
||||||
self.inline_keyboard.append(btn_array)
|
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def insert(self, button):
|
def insert(self, button):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue