mirror of
https://github.com/danog/TelegramApiServer.git
synced 2024-11-26 11:54:42 +01:00
775921723e
- server - parsing - json encoding
10 lines
362 B
PHP
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();
|
|
}
|