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());
|
|
}
|
|
);
|