Bug fixes and improvements #8
@ -3,6 +3,7 @@ from pyrogram import filters
|
|||||||
from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton, Message
|
from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton, Message
|
||||||
from pyrogram.client import Client
|
from pyrogram.client import Client
|
||||||
from classes.holo_user import HoloUser
|
from classes.holo_user import HoloUser
|
||||||
|
from modules.logging import logWrite
|
||||||
from modules.utils import configGet, locale, should_quote
|
from modules.utils import configGet, locale, should_quote
|
||||||
from modules.handlers.welcome import welcome_pass
|
from modules.handlers.welcome import welcome_pass
|
||||||
from modules.database import col_tmp
|
from modules.database import col_tmp
|
||||||
@ -35,7 +36,7 @@ async def cmd_reapply(app: Client, msg: Message):
|
|||||||
|
|
||||||
else:
|
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([
|
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:
|
else:
|
||||||
|
|
||||||
holo_user.application_restart(reapply=True)
|
holo_user.application_restart(reapply=True)
|
||||||
await welcome_pass(app, msg, once_again=True)
|
await welcome_pass(app, msg, once_again=True)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user