🔖 Update to v1.2.33

fix web restart
This commit is contained in:
xtaodada 2023-02-01 01:28:04 +08:00
parent 7d3b6a9aee
commit bfd952f15d
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
2 changed files with 3 additions and 2 deletions

View File

@ -12,7 +12,7 @@ from pagermaid.scheduler import scheduler
import pyromod.listen
from pyrogram import Client
pgm_version = "1.2.32"
pgm_version = "1.2.33"
CMD_LIST = {}
module_dir = __path__[0]
working_dir = getcwd()

View File

@ -21,4 +21,5 @@ async def bot_update():
@route.post('/bot_restart', response_class=JSONResponse, dependencies=[authentication()])
async def bot_restart():
os.kill(os.getppid(), signal.SIGINT)
os.kill(os.getpid(), signal.SIGINT)
return {}