Fix stuffs
This commit is contained in:
parent
04cf2dff61
commit
9754f506d3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user