1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 03:34:42 +01:00
MadelineProto/tools/build_tl.php
2024-03-10 15:48:55 +01:00

16 lines
493 B
PHP

<?php declare(strict_types=1);
use danog\MadelineProto\Settings\TLSchema;
use danog\MadelineProto\TL\Builder;
use danog\MadelineProto\TL\SecretBuilder;
require __DIR__.'/../vendor/autoload.php';
\danog\MadelineProto\Magic::start(true);
$builder = new Builder(new TLSchema, __DIR__.'/../src/TL/TLParser.php', 'danog\\MadelineProto\\TL');
$builder->build();
$builder = new SecretBuilder(new TLSchema, __DIR__.'/../src/TL/SecretTLParser.php', 'danog\\MadelineProto\\TL');
$builder->build();