mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 11:34:41 +01:00
Add getEventHandler in combinedAPI
This commit is contained in:
parent
9bf529b483
commit
b38366dd55
@ -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')) {
|
||||
|
Loading…
Reference in New Issue
Block a user