mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
aiogram.types.inline_keyboard: fixed getting attribute keyboard from other but InlineKeyboardMarkup has inline_keyboard attribute instead
This commit is contained in:
parent
8589aa1572
commit
447942989a
1 changed files with 2 additions and 2 deletions
|
|
@ -86,9 +86,9 @@ class InlineKeyboardMarkup(base.TelegramObject):
|
|||
def __iadd__(self, other):
|
||||
return self.add(other)
|
||||
|
||||
def __add__(self, other):
|
||||
def __add__(self, other: self.__class__):
|
||||
return self.__class__(
|
||||
inline_keyboard=self.inline_keyboard + other.keyboard,
|
||||
inline_keyboard=self.inline_keyboard + other.inline_keyboard,
|
||||
row_width=self.row_width,
|
||||
conf=self.conf,
|
||||
**self.other_kwargs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue