From 66ecc6fd0877871f06c3d0f3708f9421f1cc369b Mon Sep 17 00:00:00 2001 From: Hafitz Setya <71178188+breakdowns@users.noreply.github.com> Date: Fri, 23 Apr 2021 02:43:12 +0700 Subject: [PATCH] Fixed /cancel message (#58) Co-authored-by: FA Tulloh --- bot/helper/ext_utils/bot_utils.py | 4 ++-- bot/modules/cancel_mirror.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bot/helper/ext_utils/bot_utils.py b/bot/helper/ext_utils/bot_utils.py index 84716a70159..d75ba33fa26 100644 --- a/bot/helper/ext_utils/bot_utils.py +++ b/bot/helper/ext_utils/bot_utils.py @@ -17,8 +17,8 @@ class MirrorStatus: STATUS_UPLOADING = "Uploading...📤" STATUS_DOWNLOADING = "Downloading...📥" STATUS_WAITING = "Queued...📝" - STATUS_FAILED = "Failed 🚫. Cleaning download" - STATUS_CANCELLED = "Cancelled...❌" + STATUS_FAILED = "Failed 🚫. Cleaning Download..." + STATUS_CANCELLED = "Cancelled ❌. Cleaning Download..." STATUS_ARCHIVING = "Archiving...🔐" STATUS_EXTRACTING = "Extracting...📂" diff --git a/bot/modules/cancel_mirror.py b/bot/modules/cancel_mirror.py index a4d2d741558..0c1f803fda6 100644 --- a/bot/modules/cancel_mirror.py +++ b/bot/modules/cancel_mirror.py @@ -30,8 +30,8 @@ def cancel_mirror(update, context): dl = download_dict[mirror_message.message_id] if len(args) == 1: if mirror_message is None or mirror_message.message_id not in keys: - if BotCommands.MirrorCommand in mirror_message.text or \ - BotCommands.TarMirrorCommand in mirror_message.text: + if BotCommands.MirrorCommand in update.message.text or \ + BotCommands.TarMirrorCommand in update.message.text: msg = "Mirror already have been cancelled" sendMessage(msg, context.bot, update) return