mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 04:35:24 +00:00
Add max_quantity parameter to KeyboardButton constructor
This commit is contained in:
parent
f4d956bb52
commit
e4121e5d61
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user