notify start

This commit is contained in:
mercury
2023-06-05 13:58:09 +04:00
parent bd6a9f011b
commit 6b395d38e4
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -11,3 +11,9 @@ $bot = new Bot($c['key'], $i);
$bot->setwebhook();
$bot->setcommands();
$bot->syncPortClients();
if (!empty($c['admin'])) {
$ip = getenv('IP');
foreach ($c['admin'] as $k => $v) {
$bot->send($v, "start $ip");
}
}