mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-11-29 20:29:45 +01:00
16 lines
394 B
Markdown
16 lines
394 B
Markdown
|
### MadelineProto Example ([now async for huge speed and parallelism!](https://docs.madelineproto.xyz/docs/ASYNC.html)):
|
||
|
|
||
|
|
||
|
```php
|
||
|
if (!file_exists('madeline.php')) {
|
||
|
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
|
||
|
}
|
||
|
include 'madeline.php';
|
||
|
|
||
|
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||
|
$MadelineProto->start();
|
||
|
|
||
|
$%s = $MadelineProto->%s(%s);
|
||
|
```
|
||
|
|