watch: context based callbacks
This commit is contained in:
parent
120ca7538d
commit
8341fe08c8
|
|
@ -30,12 +30,12 @@ def _watch(bot: Bot, update: Update, args: list, isTar=False):
|
||||||
|
|
||||||
|
|
||||||
@run_async
|
@run_async
|
||||||
def watchTar(bot: Bot, update: Update, args: list):
|
def watchTar(update, context, args):
|
||||||
_watch(bot, update, args, True)
|
_watch(context.bot, update, args, True)
|
||||||
|
|
||||||
|
|
||||||
def watch(bot: Bot, update: Update, args: list):
|
def watch(update, context, args):
|
||||||
_watch(bot, update, args)
|
_watch(context.bot, update, args)
|
||||||
|
|
||||||
|
|
||||||
mirror_handler = CommandHandler(BotCommands.WatchCommand, watch,
|
mirror_handler = CommandHandler(BotCommands.WatchCommand, watch,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue