From 1cb64b64e29401e577c084f14ca0bd2454599951 Mon Sep 17 00:00:00 2001 From: YoursFunny Date: Sun, 24 Mar 2024 21:59:55 +0800 Subject: [PATCH] fix edit enable --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index e1b8da4..3236abf 100644 --- a/main.py +++ b/main.py @@ -143,7 +143,7 @@ async def cmd_remove_forward_channel(update: Update, context: ContextTypes.DEFAU @send_action(ChatAction.TYPING) async def cmd_edit_before_forward(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: - if context.user_data.get('forward_channel_id', None) is not None: + if context.user_data.get('forward_channel_id', None) is None: await update.effective_message.reply_text("Please enable forward channel first.") return ebf_status = context.user_data.get('edit_before_forward', False)