randydev commited on
Commit
f658713
Β·
verified Β·
1 Parent(s): 607be81

Update akn/manage/account.py

Browse files
Files changed (1) hide show
  1. akn/manage/account.py +5 -2
akn/manage/account.py CHANGED
@@ -482,7 +482,10 @@ async def new_magic_clone(bot: Client, cb: CallbackQuery):
482
  ]
483
  ]
484
  )
485
- await add_time_watch(user_id, bot_username)
 
 
 
486
  msg = await cb.message.reply_text(f"πŸ”‘ <code>{bot_token}</code>\n\nCopying system...")
487
  await asyncio.sleep(5)
488
  await bot.send_message(
@@ -500,11 +503,11 @@ async def new_magic_clone(bot: Client, cb: CallbackQuery):
500
  )
501
  await msg.delete()
502
  add_bot_token_magic(user_id, bot_token)
503
- await watch_do_time(user_id, user_bots, bot)
504
  except Exception as e:
505
  await bot.send_message(cb.message.chat.id, f"Error {e}")
506
  await msg.delete()
507
  return
 
508
 
509
  @ren.on_callback_query(filters.regex("^gemini_bot$"))
510
  async def new_gemini_clone(bot: Client, cb: CallbackQuery):
 
482
  ]
483
  ]
484
  )
485
+ try:
486
+ await add_time_watch(user_id, bot_username)
487
+ except Exception as e:
488
+ return await cb.message.reply_text(f"Error: {e}")
489
  msg = await cb.message.reply_text(f"πŸ”‘ <code>{bot_token}</code>\n\nCopying system...")
490
  await asyncio.sleep(5)
491
  await bot.send_message(
 
503
  )
504
  await msg.delete()
505
  add_bot_token_magic(user_id, bot_token)
 
506
  except Exception as e:
507
  await bot.send_message(cb.message.chat.id, f"Error {e}")
508
  await msg.delete()
509
  return
510
+ await watch_do_time(user_id, user_bots, bot)
511
 
512
  @ren.on_callback_query(filters.regex("^gemini_bot$"))
513
  async def new_gemini_clone(bot: Client, cb: CallbackQuery):