notify for button
This commit is contained in:
+3
-1
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user