Skip to content

Commit

Permalink
use args from CallbackContext
Browse files Browse the repository at this point in the history
  • Loading branch information
JaskaranSM committed Apr 16, 2020
1 parent 8341fe0 commit 236b6eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bot/modules/watch.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ def _watch(bot: Bot, update: Update, args: list, isTar=False):


@run_async
def watchTar(update, context, args):
_watch(context.bot, update, args, True)
def watchTar(update, context):
_watch(context.bot, update, context.args, True)


def watch(update, context, args):
_watch(context.bot, update, args)
def watch(update, context):
_watch(context.bot, update, context.args)


mirror_handler = CommandHandler(BotCommands.WatchCommand, watch,
Expand Down

0 comments on commit 236b6eb

Please sign in to comment.