Only Allow owner to cancell all downloads

This commit is contained in:
Shivam Jha 2019-10-30 17:28:59 +05:30 committed by GitHub
parent 1cfa77757f
commit 8e65b6280d
Signed by untrusted user: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,6 +44,6 @@ def cancel_all(update, context):
cancel_mirror_handler = CommandHandler(BotCommands.CancelMirror, cancel_mirror,
filters=CustomFilters.authorized_chat | CustomFilters.authorized_user)
cancel_all_handler = CommandHandler(BotCommands.CancelAllCommand, cancel_all,
filters=CustomFilters.authorized_user | CustomFilters.authorized_chat)
filters=CustomFilters.owner_filter)
dispatcher.add_handler(cancel_all_handler)
dispatcher.add_handler(cancel_mirror_handler)