Removed legacy, fixed some bugs, improved spoilers #6

Merged
profitroll merged 9 commits from dev into master 2023-01-05 16:49:35 +02:00
Showing only changes of commit 78dee0591c - Show all commits

View File

@ -1,6 +1,6 @@
from app import app
from pyrogram import filters
from pyrogram.types import Message
from pyrogram.types import Message, ReplyKeyboardRemove
from pyrogram.client import Client
from modules.utils import should_quote, logWrite, locale
from modules.database import col_tmp, col_spoilers
@ -11,6 +11,6 @@ from modules import custom_filters
async def command_cancel(app: Client, msg: Message):
col_tmp.delete_many( {"user": msg.from_user.id} )
col_spoilers.delete_many( {"user": msg.from_user.id, "completed": False} )
await msg.reply_text(locale("cancel", "message", locale=msg.from_user), quote=should_quote(msg))
await msg.reply_text(locale("cancel", "message", locale=msg.from_user), quote=should_quote(msg), reply_markup=ReplyKeyboardRemove())
logWrite(f"Cancelling all ongoing tmp operations for {msg.from_user.id}")
# ==============================================================================================================================