mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 17:44:50 +00:00
Disable temporary wait_for_click
Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
This commit is contained in:
parent
68e65e2ce5
commit
a8686889c8
1 changed files with 7 additions and 9 deletions
|
|
@ -113,16 +113,14 @@ async def ceksub(_, ctx: Message, strings):
|
|||
buttons.append(
|
||||
[InlineKeyboardButton(strings("cancel_btn"), f"close#{ctx.from_user.id}")]
|
||||
)
|
||||
try:
|
||||
msg = await pesan.edit_msg(
|
||||
strings("press_btn_msg").format(timelog=get_readable_time(timelog)),
|
||||
reply_markup=InlineKeyboardMarkup(buttons),
|
||||
)
|
||||
await msg.wait_for_click(from_user_id=ctx.from_user.id, timeout=30)
|
||||
except ListenerTimeout:
|
||||
await msg.edit_msg(strings("exp_task", context="general"))
|
||||
await pesan.edit_msg(
|
||||
strings("press_btn_msg").format(timelog=get_readable_time(timelog)),
|
||||
reply_markup=InlineKeyboardMarkup(buttons),
|
||||
)
|
||||
# await msg.wait_for_click(from_user_id=ctx.from_user.id, timeout=30)
|
||||
# except ListenerTimeout:
|
||||
# await msg.edit_msg(strings("exp_task", context="general"))
|
||||
except Exception as e:
|
||||
self.log.info(e)
|
||||
await pesan.edit_msg(strings("fail_extr_media"))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue