diff --git a/src/danog/MadelineProto/Wrappers/Events.php b/src/danog/MadelineProto/Wrappers/Events.php index 8dbc0c54..938ef9e6 100644 --- a/src/danog/MadelineProto/Wrappers/Events.php +++ b/src/danog/MadelineProto/Wrappers/Events.php @@ -40,6 +40,10 @@ trait Events $this->settings['updates']['callback'] = [$this, 'event_update_handler']; $this->settings['updates']['handle_updates'] = true; } + public function getEventHandler() + { + return $this->event_handler_instance; + } public function event_update_handler($update) {