Админка: телеграф переехал в Chat.

This commit is contained in:
2022-06-11 00:36:30 +03:00
parent 197e489e0e
commit bcd864d638
9 changed files with 21 additions and 29 deletions

View File

@@ -7,6 +7,7 @@
require_once '../functions.php';
use Battles\Admin\Clan;
use Battles\Chat;
use Battles\Database\Db;
use Battles\Moderation;
use Battles\Template;
@@ -45,7 +46,7 @@ if (isset($_GET['remclan'])) {
# Телеграф.
if (!empty($_POST['receiver']) && !empty($_POST['tgmsg'])) {
$receiver = Db::getInstance()->ofetch('SELECT id FROM users WHERE login= ?', $_POST['receiver']);
telegraph($receiver->id, $_POST['tgmsg']);
Chat::sendTelegraf($_POST['tgmsg'], $receiver->id);
echo "Успешно.";
}
# Показывает невидимок.