diff --git a/app/init.php b/app/init.php index bd48c00..43f2698 100644 --- a/app/init.php +++ b/app/init.php @@ -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"); + } +} diff --git a/version b/version index cac0dc7..02c5a0a 100644 --- a/version +++ b/version @@ -1 +1,2 @@ +05.06.2023 уведомление о старте бота 05.06.2023 версионирование \ No newline at end of file