pyrofork: fix AttributeError: 'KeyboardButtonRequestPeer' object has no attribute '*_requested'

Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
wulan17 2024-08-07 19:49:54 +07:00
parent b4d2d30fca
commit ce382c2f11
No known key found for this signature in database
GPG key ID: 318CD6CD3A6AC0A5

View file

@ -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
)
)