From e4121e5d610c1a39b991bbf5d0211e3a46b82b5b Mon Sep 17 00:00:00 2001 From: KurimuzonAkuma Date: Thu, 4 Jan 2024 15:05:15 +0300 Subject: [PATCH] Add max_quantity parameter to KeyboardButton constructor --- pyrogram/types/bots_and_keyboards/keyboard_button.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyrogram/types/bots_and_keyboards/keyboard_button.py b/pyrogram/types/bots_and_keyboards/keyboard_button.py index f3be104a..7bb4d377 100644 --- a/pyrogram/types/bots_and_keyboards/keyboard_button.py +++ b/pyrogram/types/bots_and_keyboards/keyboard_button.py @@ -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):