From 9cca99d99fa0a632afc8e269db0497bc33f2eeef Mon Sep 17 00:00:00 2001 From: Hafitz Setya <71178188+breakdowns@users.noreply.github.com> Date: Fri, 23 Apr 2021 02:45:54 +0700 Subject: [PATCH] Revert "Fixed /cancel message (#58)" (#59) This reverts commit 66ecc6fd0877871f06c3d0f3708f9421f1cc369b. --- 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 d75ba33fa26..84716a70159 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 ❌. Cleaning Download..." + STATUS_FAILED = "Failed 🚫. Cleaning download" + STATUS_CANCELLED = "Cancelled...❌" STATUS_ARCHIVING = "Archiving...🔐" STATUS_EXTRACTING = "Extracting...📂" diff --git a/bot/modules/cancel_mirror.py b/bot/modules/cancel_mirror.py index 0c1f803fda6..a4d2d741558 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 update.message.text or \ - BotCommands.TarMirrorCommand in update.message.text: + if BotCommands.MirrorCommand in mirror_message.text or \ + BotCommands.TarMirrorCommand in mirror_message.text: msg = "Mirror already have been cancelled" sendMessage(msg, context.bot, update) return