From 5cfcb5d0253fe3b1beebf0246efe06c38d9ee7db Mon Sep 17 00:00:00 2001 From: 5hojib Date: Mon, 6 Jan 2025 08:43:52 +0600 Subject: [PATCH] update restart.py --- bot/modules/restart.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot/modules/restart.py b/bot/modules/restart.py index b79d48ddd..5228a80d4 100644 --- a/bot/modules/restart.py +++ b/bot/modules/restart.py @@ -67,7 +67,8 @@ async def send_incomplete_task_message(cid, msg_id, msg): async def restart_notification(): if await aiopath.isfile(".restartmsg"): async with aiopen(".restartmsg") as f: - chat_id, msg_id = map(int, await f.read().splitlines()) + content = await f.read() + chat_id, msg_id = map(int, content.splitlines()) else: chat_id, msg_id = 0, 0