From 78dee0591cee539debbf258c83b878a9e8217204 Mon Sep 17 00:00:00 2001 From: profitroll Date: Thu, 5 Jan 2023 13:12:22 +0100 Subject: [PATCH] /cancel now removes reply markup --- modules/commands/cancel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/commands/cancel.py b/modules/commands/cancel.py index c543ecf..a0d755c 100644 --- a/modules/commands/cancel.py +++ b/modules/commands/cancel.py @@ -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}") # ============================================================================================================================== \ No newline at end of file