Added one more check
This commit is contained in:
parent
64b0562bc4
commit
717d636497
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user