Add getEventHandler in combinedAPI

This commit is contained in:
Daniil Gentili 2019-07-24 20:31:46 +02:00
parent 9bf529b483
commit b38366dd55

View File

@ -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')) {