diff --git a/docs b/docs index dfec70a8..ba3fed54 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit dfec70a8c5a6a6eca9e9d47e582141bc8a86aba8 +Subproject commit ba3fed54b3e8cb9c4d95b6729c15aec2fce066d5 diff --git a/src/danog/MadelineProto/CombinedAPI.php b/src/danog/MadelineProto/CombinedAPI.php index 896e079f..309c1095 100644 --- a/src/danog/MadelineProto/CombinedAPI.php +++ b/src/danog/MadelineProto/CombinedAPI.php @@ -188,7 +188,7 @@ class CombinedAPI if ($method === 'onLoop') { $this->loop_callback = [$this->event_handler_instance, 'onLoop']; } elseif ($method === 'onAny') { - foreach (\end($this->instances)->API->constructors->by_id as $constructor) { + foreach (\end($this->instances)->API->getTL()->getConstructors()->by_id as $constructor) { if ($constructor['type'] === 'Update' && !isset($this->event_handler_methods[$constructor['predicate']])) { $this->event_handler_methods[$constructor['predicate']] = [$this->event_handler_instance, 'onAny']; }