From 5fe906744fc52085ac6ebb2fb550bf234fec2350 Mon Sep 17 00:00:00 2001 From: yasir Date: Tue, 10 Jan 2023 11:51:14 +0700 Subject: [PATCH] fix --- misskaty/plugins/json.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misskaty/plugins/json.py b/misskaty/plugins/json.py index 1b29919c..815663e6 100644 --- a/misskaty/plugins/json.py +++ b/misskaty/plugins/json.py @@ -25,7 +25,7 @@ async def jsonify(_, message): try: await message.reply_text( f"{the_real_message}", - reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton(text="❌ Close", callback_data=f"close#{msg.from_user.id}")]]), + reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton(text="❌ Close", callback_data=f"close#{message.from_user.id}")]]), ) except Exception as e: with open("json.text", "w+", encoding="utf8") as out_file: @@ -35,6 +35,6 @@ async def jsonify(_, message): caption=f"{str(e)}", disable_notification=True, reply_to_message_id=reply_to_id, - reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton(text="❌ Close", callback_data=f"close#{msg.from_user.id}")]]), + reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton(text="❌ Close", callback_data=f"close#{message.from_user.id}")]]), ) os.remove("json.text")