This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
Telegram/modules/commands/cancel.py
2022-12-23 01:40:23 +01:00

7 lines
274 B
Python

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))