From c9354a81149fc8ecda62e3b10bf55014fe1e7d78 Mon Sep 17 00:00:00 2001 From: Anas <77075674+anasty17@users.noreply.github.com> Date: Wed, 11 Aug 2021 02:00:38 +0300 Subject: [PATCH] Update watch.py --- bot/modules/watch.py | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/bot/modules/watch.py b/bot/modules/watch.py index 8b65d11..f9967f5 100644 --- a/bot/modules/watch.py +++ b/bot/modules/watch.py @@ -58,18 +58,11 @@ def watch(update, context): _watch(context.bot, update) -mirror_handler = CommandHandler( - BotCommands.WatchCommand, - watch, - filters=CustomFilters.authorized_chat | CustomFilters.authorized_user, - run_async=True, -) -tar_mirror_handler = CommandHandler( - BotCommands.TarWatchCommand, - watchTar, - filters=CustomFilters.authorized_chat | CustomFilters.authorized_user, - run_async=True, -) +mirror_handler = CommandHandler(BotCommands.WatchCommand, watch, + filters=CustomFilters.authorized_chat | CustomFilters.authorized_user, 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(tar_mirror_handler)