Update example

This commit is contained in:
Daniil Gentili 2020-03-03 20:28:04 +01:00
parent aba1bf5512
commit 3db8e3e47a
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -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();
```
<a href="https://docs.madelineproto.xyz/docs/SETTINGS.html">Next section</a>
<a href="https://docs.madelineproto.xyz/docs/SETTINGS.html">Next section</a>