24 lines
445 B
PHP
24 lines
445 B
PHP
<?php
|
|
|
|
use danog\MadelineProto\Logger;
|
|
use danog\MadelineProto\TON\API;
|
|
use danog\MadelineProto\Tools;
|
|
|
|
require 'vendor/autoload.php';
|
|
|
|
$API = new API(
|
|
[
|
|
'logger' => [
|
|
'logger' => Logger::ECHO_LOGGER
|
|
]
|
|
]
|
|
);
|
|
|
|
$API->async(true);
|
|
$API->loop(
|
|
function () use ($API) {
|
|
yield $API->connect(__DIR__.'/ton-lite-client-test1.config.json');
|
|
$API->logger(yield $API->liteServer->getTime());
|
|
}
|
|
);
|