2019-12-14 18:31:28 +01:00
|
|
|
<?php
|
|
|
|
|
2020-10-03 15:04:35 +02:00
|
|
|
use danog\MadelineProto\Settings\Logger as SettingsLogger;
|
2019-12-14 18:31:28 +01:00
|
|
|
use danog\MadelineProto\TON\API;
|
|
|
|
|
|
|
|
require 'vendor/autoload.php';
|
|
|
|
|
2020-10-03 15:04:35 +02:00
|
|
|
$API = new API(new SettingsLogger);
|
2019-12-14 18:31:28 +01:00
|
|
|
|
|
|
|
$API->async(true);
|
|
|
|
$API->loop(
|
|
|
|
function () use ($API) {
|
|
|
|
yield $API->connect(__DIR__.'/ton-lite-client-test1.config.json');
|
2019-12-28 18:44:56 +01:00
|
|
|
$API->logger(yield $API->liteServer->getTime());
|
2019-12-14 18:31:28 +01:00
|
|
|
}
|
|
|
|
);
|