TelegramApiServer/bootstrap.php
Alexander Pankratov 775921723e Basic functions:
- server
 - parsing
 - json encoding
2019-01-07 15:24:29 +03:00

10 lines
362 B
PHP

<?php
//Check if autoload has been already loaded (in case plugin installed in existing project)
if (!class_exists('TelegramSwooleClient')) {
require __DIR__ . '/vendor/autoload.php';
}
//Check if root env file hash been loaded (in case plugin installed in existing project)
if (!getenv('SWOOLE_SERVER_ADDRESS')){
(new Dotenv\Dotenv(__DIR__))->load();
}