From b38366dd555870bf3a8b6545e1e56afdae300620 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Wed, 24 Jul 2019 20:31:46 +0200 Subject: [PATCH] Add getEventHandler in combinedAPI --- src/danog/MadelineProto/CombinedAPI.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/CombinedAPI.php b/src/danog/MadelineProto/CombinedAPI.php index ecb0be8d8..a43e52b1f 100644 --- a/src/danog/MadelineProto/CombinedAPI.php +++ b/src/danog/MadelineProto/CombinedAPI.php @@ -164,7 +164,10 @@ class CombinedAPI public $event_handler; private $event_handler_instance; private $event_handler_methods = []; - + public function getEventHandler() + { + return $this->event_handler_instance; + } public function setEventHandler($event_handler) { if (!class_exists($event_handler) || !is_subclass_of($event_handler, '\danog\MadelineProto\CombinedEventHandler')) {