|
@@ -274,4 +274,4 @@ async def broadcast_message(_, message):
|
|
|
@app.on_message(filters.command("update") & filters.user(SUDOERS))
|
|
@app.on_message(filters.command("update") & filters.user(SUDOERS))
|
|
|
async def update_restart(_, message):
|
|
async def update_restart(_, message):
|
|
|
await message.reply_text(f'```{subprocess.check_output(["git", "pull"]).decode("UTF-8")}```')
|
|
await message.reply_text(f'```{subprocess.check_output(["git", "pull"]).decode("UTF-8")}```')
|
|
|
- os.execvp("python3", ["python3", "-m", "wbb"])
|
|
|
|
|
|
|
+ os.execvp("python3.9", ["python3.9", "-m", "wbb"])
|