fixed hardcoded /watch for custom command users (#66)

This commit is contained in:
Arsalan 2020-04-22 06:11:51 +00:00 committed by GitHub
parent 63a67d7a14
commit 4410f4e8aa
Signed by untrusted user: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ def _watch(bot: Bot, update: Update, args: list, isTar=False):
try: try:
link = args[0] link = args[0]
except IndexError: except IndexError:
sendMessage('/watch [yt_dl supported link] to mirror with youtube_dl', bot, update) sendMessage(f'/{BotCommands.WatchCommand} [yt_dl supported link] to mirror with youtube_dl', bot, update)
return return
reply_to = update.message.reply_to_message reply_to = update.message.reply_to_message
if reply_to is not None: if reply_to is not None: