diff --git a/bot/core/handlers.py b/bot/core/handlers.py index e4b83bbe2..52d1841f8 100644 --- a/bot/core/handlers.py +++ b/bot/core/handlers.py @@ -170,11 +170,11 @@ def add_handlers(): BotCommands.YtdlLeechCommand, CustomFilters.authorized, ), - "restart_sessions": ( - restart_sessions, - BotCommands.RestartSessionsCommand, - CustomFilters.sudo, - ), + # "restart_sessions": ( + # restart_sessions, + # BotCommands.RestartSessionsCommand, + # CustomFilters.sudo, + # ), "mediainfo": ( mediainfo, BotCommands.MediaInfoCommand, diff --git a/bot/modules/restart.py b/bot/modules/restart.py index 9c6428957..734d6bb71 100644 --- a/bot/modules/restart.py +++ b/bot/modules/restart.py @@ -108,7 +108,7 @@ async def confirm_restart(_, query): intervals["stopAll"] = True restart_message = await send_message(reply_to, "Restarting...") await delete_message(message) - await TgClient.stop() + # await TgClient.stop() if scheduler.running: scheduler.shutdown(wait=False) if qb := intervals["qb"]: