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")