from app import app from pyrogram import filters from modules.utils import should_quote @app.on_message(~ filters.scheduled & filters.command("cancel", prefixes=["/"])) async def command_cancel(app, msg): await msg.reply_text("Command exists.", quote=should_quote(msg))