From e49471aa6c87df0bdca4f3b6fa1689b26dbf24f5 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Fri, 15 Mar 2024 18:01:58 +0800 Subject: [PATCH] :bookmark: Update to v1.4.12 fix reload dispatcher handler --- pagermaid/__init__.py | 4 ++-- pagermaid/modules/reload.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pagermaid/__init__.py b/pagermaid/__init__.py index 59f5345..dd23d95 100644 --- a/pagermaid/__init__.py +++ b/pagermaid/__init__.py @@ -22,8 +22,8 @@ from pagermaid.scheduler import scheduler import pyromod.listen from pyrogram import Client -pgm_version = "1.4.11" -pgm_version_code = 1411 +pgm_version = "1.4.12" +pgm_version_code = 1412 CMD_LIST = {} module_dir = __path__[0] working_dir = getcwd() diff --git a/pagermaid/modules/reload.py b/pagermaid/modules/reload.py index fa5a5f6..db07367 100644 --- a/pagermaid/modules/reload.py +++ b/pagermaid/modules/reload.py @@ -47,6 +47,7 @@ async def ping_task(): ping_watchdog_event.set() try: await bot.restart() + await reload_all() finally: ping_watchdog_event.clear() logs.debug("Ping task ok")