From 8341fe08c8925290a01447d567468880c8be4b26 Mon Sep 17 00:00:00 2001 From: jaskaranSM Date: Thu, 16 Apr 2020 13:00:35 +0530 Subject: [PATCH] watch: context based callbacks --- bot/modules/watch.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bot/modules/watch.py b/bot/modules/watch.py index 9754fc4..6baefc3 100644 --- a/bot/modules/watch.py +++ b/bot/modules/watch.py @@ -30,12 +30,12 @@ def _watch(bot: Bot, update: Update, args: list, isTar=False): @run_async -def watchTar(bot: Bot, update: Update, args: list): - _watch(bot, update, args, True) +def watchTar(update, context, args): + _watch(context.bot, update, args, True) -def watch(bot: Bot, update: Update, args: list): - _watch(bot, update, args) +def watch(update, context, args): + _watch(context.bot, update, args) mirror_handler = CommandHandler(BotCommands.WatchCommand, watch,