mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-23 23:34:28 +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):
|
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):
|
||||||
|
Loading…
Reference in New Issue
Block a user