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")