FIx: type error

This commit is contained in:
Nikita 2022-08-15 14:23:56 +03:00 committed by GitHub
parent a209f1c1b5
commit f2a3fb7e29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,7 @@ class InlineKeyboardMarkup(base.TelegramObject):
:return: self
:rtype: :obj:`types.InlineKeyboardMarkup`
"""
self.inline_keyboard.append(list(buttons) or [])
self.inline_keyboard.append(list(buttons or []))
return self
def insert(self, button):