mirror of
https://github.com/TeamPGM/PagerMaid-Pyro.git
synced 2024-11-16 13:41:10 +00:00
🔖 Update to v1.2.33
fix web restart
This commit is contained in:
parent
7d3b6a9aee
commit
bfd952f15d
@ -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()
|
||||
|
@ -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 {}
|
||||
|
Loading…
Reference in New Issue
Block a user