From 3db8e3e47a5dd6350b9f1cd9bea2dcbf58e5b86c Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Tue, 3 Mar 2020 20:28:04 +0100 Subject: [PATCH] Update example --- docs/docs/UPDATES.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/docs/UPDATES.md b/docs/docs/UPDATES.md index 0daf949e..ddbfc410 100644 --- a/docs/docs/UPDATES.md +++ b/docs/docs/UPDATES.md @@ -74,6 +74,14 @@ class MyEventHandler extends EventHandler { return [self::ADMIN]; } + /** + * Called on startup, can contain async calls for initialization of the bot + * + * @return void + */ + public function onStart() + { + } /** * Handle updates from supergroups and channels * @@ -202,4 +210,4 @@ You can use the `resetUpdateState` method to reset the update state and fetch al $MadelineProto->resetUpdateState(); ``` -Next section \ No newline at end of file +Next section