notify for button

This commit is contained in:
mercury
2023-07-21 17:22:08 +04:00
parent 1b3c7d47f6
commit 1c123e6ec4
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -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 = [
+2
View File
@@ -1,3 +1,5 @@
21.07.2023 уведомления при нажатии кнопки
<code>git pull</code>
20.07.2023 кнопка блокировки обмена между пирами
<code>git pull</code>
<code>make r</code>