fix edit enable

This commit is contained in:
2024-03-24 21:59:55 +08:00
parent 8ad9078c5e
commit 1cb64b64e2
+1 -1
View File
@@ -143,7 +143,7 @@ async def cmd_remove_forward_channel(update: Update, context: ContextTypes.DEFAU
@send_action(ChatAction.TYPING) @send_action(ChatAction.TYPING)
async def cmd_edit_before_forward(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: 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.") await update.effective_message.reply_text("Please enable forward channel first.")
return return
ebf_status = context.user_data.get('edit_before_forward', False) ebf_status = context.user_data.get('edit_before_forward', False)