Add max_quantity parameter to KeyboardButton constructor

This commit is contained in:
KurimuzonAkuma 2024-01-04 15:05:15 +03:00
parent f4d956bb52
commit e4121e5d61

View File

@ -204,6 +204,7 @@ class KeyboardButton(Object):
user_admin_rights=user_admin_rights,
bot_admin_rights=bot_admin_rights
),
max_quantity=1
)
if isinstance(self.request_peer, types.RequestChatInfo):
@ -255,6 +256,7 @@ class KeyboardButton(Object):
user_admin_rights=user_admin_rights,
bot_admin_rights=bot_admin_rights
),
max_quantity=1
)
if isinstance(self.request_peer, types.RequestUserInfo):