Initialized /cancel command

This commit is contained in:
Profitroll
2022-12-23 01:40:23 +01:00
parent 0302d8c1ae
commit 426b1550f6
2 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
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))