From 717d6364973334474d7cbe4d6d23bb86c2e2c978 Mon Sep 17 00:00:00 2001 From: profitroll Date: Mon, 9 Jan 2023 13:19:17 +0100 Subject: [PATCH] Added one more check --- modules/commands/reapply.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/commands/reapply.py b/modules/commands/reapply.py index aec1829..1912eb6 100644 --- a/modules/commands/reapply.py +++ b/modules/commands/reapply.py @@ -3,6 +3,7 @@ from pyrogram import filters from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton, Message from pyrogram.client import Client from classes.holo_user import HoloUser +from modules.logging import logWrite from modules.utils import configGet, locale, should_quote from modules.handlers.welcome import welcome_pass from modules.database import col_tmp @@ -35,7 +36,7 @@ async def cmd_reapply(app: Client, msg: Message): else: - if holo_user.sponsorship_state()[1] is True: + if holo_user.application_state()[1] is True and holo_user.application_state()[0] != "fill": await msg.reply_text(locale("reapply_left_chat", "message", locale=holo_user), reply_markup=InlineKeyboardMarkup([ [ @@ -47,6 +48,7 @@ async def cmd_reapply(app: Client, msg: Message): ])) else: + holo_user.application_restart(reapply=True) await welcome_pass(app, msg, once_again=True)