From c766c3e3c29b3602e4b73e4c422dcd32de31814b Mon Sep 17 00:00:00 2001 From: kalanakt Date: Sat, 27 Jan 2024 22:08:11 +0530 Subject: [PATCH] fix:TypeError: [#131] 'Message' object is not callable --- Uploader/button.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Uploader/button.py b/Uploader/button.py index c06820d4..35913833 100644 --- a/Uploader/button.py +++ b/Uploader/button.py @@ -40,7 +40,7 @@ async def youtube_dl_call_back(_bot, update): with open(save_ytdl_json_path, "r", encoding="utf8") as f: response_json = json.load(f) except FileNotFoundError as e: - await update.message(f"error: {e}") + await update.message.edit(f"error: {e}") await update.message.delete() return False youtube_dl_url = update.message.reply_to_message.text