MadelineProtoDocs/template/method-example.md
2020-06-16 17:50:25 +02:00

449 B

MadelineProto Example (now async for huge speed and parallelism!):

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]);

Or, if you're into Lua:

%1$s = %s({%s})