From 354097f8b5c9063d804c986fb4911c0fe0d41b0a Mon Sep 17 00:00:00 2001 From: mercury Date: Mon, 5 Jun 2023 01:53:43 +0400 Subject: [PATCH] fix import mtproto --- app/bot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/bot.php b/app/bot.php index 3a8c072..1404208 100644 --- a/app/bot.php +++ b/app/bot.php @@ -309,13 +309,13 @@ class Bot public function secretSet($secret) { - file_put_contents('/config/mtprotosecret', $secret ?: ''); $this->restartTG($secret); $this->mtproto(); } public function restartTG($secret) { + file_put_contents('/config/mtprotosecret', $secret ?: ''); $this->ssh('pkill mtproto-proxy', 'tg'); if (preg_match('~^\w{32}$~', $secret)) { $p = getenv('TGPORT');