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)