diff --git a/app/bot.php b/app/bot.php index 975502a..26bdc2b 100644 --- a/app/bot.php +++ b/app/bot.php @@ -939,6 +939,7 @@ class Bot } else { $this->ssh('bash /unblock_torrent.sh'); } + $this->answer($this->input['callback_id'], 'доступ к торрентам ' . ($c['blocktorrent'] ? 'заблокирован' : 'разблокирован'), true); $this->menu('wg', $page); } public function switchExchange($page) @@ -951,6 +952,7 @@ class Bot } else { $this->ssh('bash /unblock_exchange.sh'); } + $this->answer($this->input['callback_id'], 'обмен между пользователями ' . ($c['exchange'] ? 'заблокирован' : 'разблокирован'), true); $this->menu('wg', $page); } @@ -1836,7 +1838,7 @@ DNS-over-HTTPS with IP: $t = [ 'name' => $this->getName($v), 'time' => $this->getTime(strtotime($v['## time'])), - 'status' => $v['online'] == 'off' ? '🚷' : ($v['online'] ? '🟢' : '🔴'), + 'status' => $v['online'] == 'off' ? '🚷' : $this->i18n($v['online'] ? 'on' : 'off'), 'traffic' => $tr, ]; $pad = [ diff --git a/version b/version index 16eb068..ab616f7 100644 --- a/version +++ b/version @@ -1,3 +1,5 @@ +21.07.2023 уведомления при нажатии кнопки +git pull 20.07.2023 кнопка блокировки обмена между пирами git pull make r