Only Allow owner to cancell all downloads
This commit is contained in:
parent
1cfa77757f
commit
8e65b6280d
|
|
@ -44,6 +44,6 @@ def cancel_all(update, context):
|
||||||
cancel_mirror_handler = CommandHandler(BotCommands.CancelMirror, cancel_mirror,
|
cancel_mirror_handler = CommandHandler(BotCommands.CancelMirror, cancel_mirror,
|
||||||
filters=CustomFilters.authorized_chat | CustomFilters.authorized_user)
|
filters=CustomFilters.authorized_chat | CustomFilters.authorized_user)
|
||||||
cancel_all_handler = CommandHandler(BotCommands.CancelAllCommand, cancel_all,
|
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_all_handler)
|
||||||
dispatcher.add_handler(cancel_mirror_handler)
|
dispatcher.add_handler(cancel_mirror_handler)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue