# Web templates for $MadelineProto->start()

You get the web template used for the $MadelineProto->start() web UI thusly:

$template = yield $MadelineProto->getWebTemplate();

By default, it is equal to:

<!DOCTYPE html>
        <form method="POST">
        <button type="submit"/>Go</button>

To modify the web template, use:

yield $MadelineProto->setWebTemplate($new_template);

The new template must have a structure similar the the default template.

Next section

This site uses cookies, as described in the cookie policy. By clicking on "Accept" you consent to the use of cookies.