mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-27 16:45:19 +00:00
Fix KeyboardButton
This commit is contained in:
parent
35f672095f
commit
b6b748891b
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user