mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
aiogram.types.inline_keyboard: using self.__class__ instead of explicit InlineKeyboardMarkup class initializing
This commit is contained in:
parent
46de5ecb0f
commit
6a342dd0a8
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ class InlineKeyboardMarkup(base.TelegramObject):
|
|||
return self.add(other)
|
||||
|
||||
def __add__(self, other):
|
||||
return InlineKeyboardMarkup(
|
||||
return self.__class__(
|
||||
inline_keyboard=self.inline_keyboard + other.keyboard,
|
||||
row_width=self.row_width,
|
||||
conf=self.conf,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue