Fix stuffs

This commit is contained in:
Daniil Gentili 2019-06-06 16:09:23 +02:00
parent 04cf2dff61
commit 9754f506d3
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,8 @@ Update handling can be done in different ways:
When running the `loop()` method via web, MadelineProto will automatically enable a **magical self-restart hack**, to keep the bot running even on webhosts with limited execution time.
Locking will also be handled automatically, so even if you start the script via web several times, only one instance will be running at a time (no need to do flocking manually!).
It relies on the shutdown function, so you must not set a custom shutdown function in your code, and instead use the **MadelineProto shutdown static API**:
```php
@ -44,6 +46,7 @@ A second optional parameter can also be accepted, containing the ID of the calla
The `removeCallback` will return true if the callback exists and it was removed correctly, false otherwise (as with all new MadelineProto 4.0 APIs, there are PHPDOCs for these methods so you'll see them in your IDE).
## Async Event driven
```php