From b6b748891b7717a5366c476a85f50de40f7d1627 Mon Sep 17 00:00:00 2001 From: KurimuzonAkuma Date: Sat, 2 Dec 2023 16:24:15 +0300 Subject: [PATCH] Fix KeyboardButton --- pyrogram/types/bots_and_keyboards/keyboard_button.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pyrogram/types/bots_and_keyboards/keyboard_button.py b/pyrogram/types/bots_and_keyboards/keyboard_button.py index 48e46442..145de78e 100644 --- a/pyrogram/types/bots_and_keyboards/keyboard_button.py +++ b/pyrogram/types/bots_and_keyboards/keyboard_button.py @@ -91,14 +91,13 @@ class KeyboardButton(Object): if isinstance(b, raw.types.KeyboardButtonRequestPoll): return KeyboardButton( text=b.text, - quiz=b.quiz + request_poll=types.RequestPollInfo(is_quiz=b.quiz) ) if isinstance(b, raw.types.KeyboardButtonRequestPeer): return KeyboardButton( text=b.text, - button_id=b.button_id, - peer_type=b.peer_type + request_peer=b.peer_type ) if isinstance(b, raw.types.KeyboardButtonSimpleWebView):