aiogram.types.inline_keyboard: fixed adding other.keyboard for a new keyboard

This commit is contained in:
floordiv 2021-04-12 15:20:01 +03:00
parent efbef64cd3
commit 46de5ecb0f

View file

@ -88,7 +88,7 @@ class InlineKeyboardMarkup(base.TelegramObject):
def __add__(self, other):
return InlineKeyboardMarkup(
inline_keyboard=self.inline_keyboard,
inline_keyboard=self.inline_keyboard + other.keyboard,
row_width=self.row_width,
conf=self.conf,
**self.other_kwargs