mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-26 23:14:38 +01:00
17 lines
370 B
PHP
17 lines
370 B
PHP
<?php
|
|
|
|
use danog\MadelineProto\Settings\Logger as SettingsLogger;
|
|
use danog\MadelineProto\TON\API;
|
|
|
|
require 'vendor/autoload.php';
|
|
|
|
$API = new API(new SettingsLogger);
|
|
|
|
$API->async(true);
|
|
$API->loop(
|
|
function () use ($API) {
|
|
yield $API->connect(__DIR__.'/ton-lite-client-test1.config.json');
|
|
$API->logger(yield $API->liteServer->getTime());
|
|
}
|
|
);
|