diff --git a/cm_telegram.py b/cm_telegram.py index 975c7b6..345733d 100644 --- a/cm_telegram.py +++ b/cm_telegram.py @@ -26,7 +26,7 @@ async def menu_cmd_handler(update: Update, context: ContextTypes.DEFAULT_TYPE) - async def get_acc_handler(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: while creating_acc_now == True: await update.message.reply_text('CM account creation is running, queuing ...') - time.sleep(60) + time.sleep(1) creating_acc_now = True await update.message.reply_text('Start Getting CM Account ...') try: @@ -80,11 +80,12 @@ def monitor_amount_of_available_acc(): while True: bot = CM_BOT_HAL() available_size = len(bot.get_all_available_acc()) - print(available_size) if available_size <= max_available: + creating_acc_now = True for i in range(available_size, max_available): bot.create_new_acc() + creating_acc_now = False time.sleep(10 * 60) del bot