Update watch.py

This commit is contained in:
Anas 2021-08-11 02:00:38 +03:00 committed by GitHub
parent c16c7c681b
commit c9354a8114
Signed by untrusted user: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,18 +58,11 @@ def watch(update, context):
_watch(context.bot, update) _watch(context.bot, update)
mirror_handler = CommandHandler( mirror_handler = CommandHandler(BotCommands.WatchCommand, watch,
BotCommands.WatchCommand, filters=CustomFilters.authorized_chat | CustomFilters.authorized_user, run_async=True)
watch, tar_mirror_handler = CommandHandler(BotCommands.TarWatchCommand, watchTar,
filters=CustomFilters.authorized_chat | CustomFilters.authorized_user, filters=CustomFilters.authorized_chat | CustomFilters.authorized_user, run_async=True)
run_async=True,
)
tar_mirror_handler = CommandHandler(
BotCommands.TarWatchCommand,
watchTar,
filters=CustomFilters.authorized_chat | CustomFilters.authorized_user,
run_async=True,
)
dispatcher.add_handler(mirror_handler) dispatcher.add_handler(mirror_handler)
dispatcher.add_handler(tar_mirror_handler) dispatcher.add_handler(tar_mirror_handler)