fix edit message html escape

This commit is contained in:
2024-04-28 01:01:59 +08:00
parent 755c405196
commit 7f90670f1c
+2 -1
View File
@@ -1,3 +1,4 @@
import html
from functools import wraps from functools import wraps
from aiohttp import ClientSession from aiohttp import ClientSession
@@ -95,7 +96,7 @@ async def edit_message(update: Update, context: ContextTypes.DEFAULT_TYPE) -> No
) + update_text[match[1]:] ) + update_text[match[1]:]
message_to_send = context.user_data['message_to_send'] message_to_send = context.user_data['message_to_send']
await message_to_send[0].edit_caption( await message_to_send[0].edit_caption(
update_text, html.escape(update_text),
reply_markup=InlineKeyboardMarkup.from_button( reply_markup=InlineKeyboardMarkup.from_button(
InlineKeyboardButton("↩️ Confirm", callback_data="forward") InlineKeyboardButton("↩️ Confirm", callback_data="forward")
) )