diff --git a/app/bot.php b/app/bot.php index a0ffcf9..9bb6277 100644 --- a/app/bot.php +++ b/app/bot.php @@ -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(); + } } } diff --git a/app/init.php b/app/init.php index 500dce6..a531d2c 100644 --- a/app/init.php +++ b/app/init.php @@ -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(); diff --git a/app/service.php b/app/service.php index d898b6e..8524af4 100644 --- a/app/service.php +++ b/app/service.php @@ -13,5 +13,6 @@ if ($c['debug']) { $bot = new Bot($c['key'], $i); $bot->restartTG(); +$bot->dontshowcron = 1; $bot->sslip(); $bot->cleanDocker();