improve selfupdate

This commit is contained in:
mercury
2024-10-23 02:32:19 +04:00
parent bba1ec9e17
commit 4c63ae669a
3 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -1456,8 +1456,10 @@ class Bot
$this->update($this->input['chat'], $this->input['message_id'], implode("\n", $out));
$this->language = $this->getPacConf()['language'] ?: 'en';
$this->limit = $this->getPacConf()['limitpage'] ?: 5;
sleep(3);
$this->menu();
if (empty($file)) {
sleep(3);
$this->menu();
}
}
}
-1
View File
@@ -12,7 +12,6 @@ if ($c['debug']) {
$bot = new Bot($c['key'], $i);
$bot->cleanQueue();
$bot->setwebhook();
$bot->dontshowcron = 1;
$bot->selfUpdate();
$bot->adguardCheckPswd();
$bot->adguardProtect();
+1
View File
@@ -13,5 +13,6 @@ if ($c['debug']) {
$bot = new Bot($c['key'], $i);
$bot->restartTG();
$bot->dontshowcron = 1;
$bot->sslip();
$bot->cleanDocker();