1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 10:59:02 +01:00
MadelineProto/ton/lite-client.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());
}
);