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