From 293c932289c218a0c6c75fc2bbbbc2c12af1ee46 Mon Sep 17 00:00:00 2001 From: 5hojib Date: Mon, 6 Jan 2025 08:40:23 +0600 Subject: [PATCH] update restart.py --- bot/modules/restart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/modules/restart.py b/bot/modules/restart.py index 144fb9538..b79d48ddd 100644 --- a/bot/modules/restart.py +++ b/bot/modules/restart.py @@ -66,7 +66,7 @@ async def send_incomplete_task_message(cid, msg_id, msg): async def restart_notification(): if await aiopath.isfile(".restartmsg"): - with aiopen(".restartmsg") as f: + async with aiopen(".restartmsg") as f: chat_id, msg_id = map(int, await f.read().splitlines()) else: chat_id, msg_id = 0, 0