1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 01:14:39 +01:00
MadelineProto/tools/build_tl.php

16 lines
493 B
PHP
Raw Normal View History

<?php declare(strict_types=1);
2024-02-13 21:14:18 +01:00
use danog\MadelineProto\Settings\TLSchema;
use danog\MadelineProto\TL\Builder;
2024-03-10 15:48:55 +01:00
use danog\MadelineProto\TL\SecretBuilder;
2024-02-13 21:14:18 +01:00
require __DIR__.'/../vendor/autoload.php';
2024-03-02 13:03:09 +01:00
\danog\MadelineProto\Magic::start(true);
2024-02-13 21:14:18 +01:00
$builder = new Builder(new TLSchema, __DIR__.'/../src/TL/TLParser.php', 'danog\\MadelineProto\\TL');
$builder->build();
2024-03-10 15:48:55 +01:00
$builder = new SecretBuilder(new TLSchema, __DIR__.'/../src/TL/SecretTLParser.php', 'danog\\MadelineProto\\TL');
$builder->build();