From fc58ca45d395d13123f615069f60f3d526ce268f Mon Sep 17 00:00:00 2001 From: 5hojib Date: Sat, 7 Dec 2024 11:25:08 +0600 Subject: [PATCH] update bot_settings.py --- bot/modules/bot_settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/modules/bot_settings.py b/bot/modules/bot_settings.py index b1f05d44f..27961e3bd 100644 --- a/bot/modules/bot_settings.py +++ b/bot/modules/bot_settings.py @@ -151,8 +151,8 @@ async def edit_variable(_, message, pre_message, key): value = int(value) config_dict[key] = value await update_buttons(pre_message, key, "editvar", False) - await message.delete() - await Database().update_config({key: value}) + await delete_message(message) + # await Database().update_config({key: value}) if key in ["QUEUE_ALL", "QUEUE_DOWNLOAD", "QUEUE_UPLOAD"]: await start_from_queued()