Fix KeyboardButton

This commit is contained in:
KurimuzonAkuma 2023-12-02 16:24:15 +03:00
parent 35f672095f
commit b6b748891b

View File

@ -91,14 +91,13 @@ class KeyboardButton(Object):
if isinstance(b, raw.types.KeyboardButtonRequestPoll): if isinstance(b, raw.types.KeyboardButtonRequestPoll):
return KeyboardButton( return KeyboardButton(
text=b.text, text=b.text,
quiz=b.quiz request_poll=types.RequestPollInfo(is_quiz=b.quiz)
) )
if isinstance(b, raw.types.KeyboardButtonRequestPeer): if isinstance(b, raw.types.KeyboardButtonRequestPeer):
return KeyboardButton( return KeyboardButton(
text=b.text, text=b.text,
button_id=b.button_id, request_peer=b.peer_type
peer_type=b.peer_type
) )
if isinstance(b, raw.types.KeyboardButtonSimpleWebView): if isinstance(b, raw.types.KeyboardButtonSimpleWebView):