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