Docufix
This commit is contained in:
parent
c315139306
commit
4be9317069
@ -294,12 +294,7 @@ $MadelineProto = new \danog\MadelineProto\API('bot.madeline');
|
||||
|
||||
$MadelineProto->start();
|
||||
$MadelineProto->setNoop();
|
||||
$MadelineProto->loop();
|
||||
```
|
||||
When an [Update](https://docs.madelineproto.xyz/API_docs/types/Update.html) is received, nothing is done. This is useful if you need to populate the internal peer database with peers to avoid `This peer is not present in the internal peer database errors`, but don't need to handle updates.
|
||||
|
||||
The update handling loop is started by the `$MadelineProto->loop()` method, and it will automatically restart the script if execution time runs out.
|
||||
|
||||
To break out of the loop just call `die();`
|
||||
|
||||
<a href="https://docs.madelineproto.xyz/docs/SETTINGS.html">Next section</a>
|
||||
<a href="https://docs.madelineproto.xyz/docs/SETTINGS.html">Next section</a>
|
||||
|
Loading…
Reference in New Issue
Block a user