From 9754f506d36c41260096b384ed82677faf2ab5bf Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 6 Jun 2019 16:09:23 +0200 Subject: [PATCH] Fix stuffs --- docs/docs/UPDATES.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/docs/UPDATES.md b/docs/docs/UPDATES.md index 0389373f..acac4b19 100644 --- a/docs/docs/UPDATES.md +++ b/docs/docs/UPDATES.md @@ -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