🔖 Update to v1.4.12

fix reload dispatcher handler
This commit is contained in:
xtaodada 2024-03-15 18:01:58 +08:00
parent 557000dbec
commit e49471aa6c
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
2 changed files with 3 additions and 2 deletions

View File

@ -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()

View File

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