mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
pyrofork: fix AttributeError: 'KeyboardButtonRequestPeer' object has no attribute '*_requested'
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
b4d2d30fca
commit
ce382c2f11
1 changed files with 3 additions and 12 deletions
|
|
@ -104,10 +104,7 @@ class KeyboardButton(Object):
|
|||
request_chat=types.RequestPeerTypeChannel(
|
||||
is_creator=b.peer_type.creator,
|
||||
is_username=b.peer_type.has_username,
|
||||
max=b.max_quantity,
|
||||
is_name_requested=b.name_requested,
|
||||
is_username_requested=b.username_requested,
|
||||
is_photo_requested=b.photo_requested
|
||||
max=b.max_quantity
|
||||
)
|
||||
)
|
||||
if isinstance(b.peer_type, raw.types.RequestPeerTypeChat):
|
||||
|
|
@ -118,10 +115,7 @@ class KeyboardButton(Object):
|
|||
is_bot_participant=b.peer_type.bot_participant,
|
||||
is_username=b.peer_type.has_username,
|
||||
is_forum=b.peer_type.forum,
|
||||
max=b.max_quantity,
|
||||
is_name_requested=b.name_requested,
|
||||
is_username_requested=b.username_requested,
|
||||
is_photo_requested=b.photo_requested
|
||||
max=b.max_quantity
|
||||
)
|
||||
)
|
||||
|
||||
|
|
@ -131,10 +125,7 @@ class KeyboardButton(Object):
|
|||
request_user=types.RequestPeerTypeUser(
|
||||
is_bot=b.peer_type.bot,
|
||||
is_premium=b.peer_type.premium,
|
||||
max=b.max_quantity,
|
||||
is_name_requested=b.name_requested,
|
||||
is_username_requested=b.username_requested,
|
||||
is_photo_requested=b.photo_requested
|
||||
max=b.max_quantity
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue