diff --git a/commands.py b/commands.py index ad719d7..4a444cc 100644 --- a/commands.py +++ b/commands.py @@ -60,8 +60,10 @@ async def info_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> No ) post_data = get_json(f"posts/{post_id}") if post_data is None: - await update.message.reply_text( + await context.bot.edit_message_text( f"{html_parser.bold("Error")}: That record was not found.", + update.effective_chat.id, + message.message_id, parse_mode=ParseMode.HTML, ) return