diff --git a/src/danog/MadelineProto/MTProtoTools/UpdateHandler.php b/src/danog/MadelineProto/MTProtoTools/UpdateHandler.php index 9781ca89..3796020e 100644 --- a/src/danog/MadelineProto/MTProtoTools/UpdateHandler.php +++ b/src/danog/MadelineProto/MTProtoTools/UpdateHandler.php @@ -55,6 +55,7 @@ trait UpdateHandler \danog\MadelineProto\Logger::log($e->getMessage()); } } + if (isset($this->settings['pwr']['update_handler'])) $this->settings['pwr']['update_handler']($update); } public function get_updates_update_handler($update) diff --git a/src/danog/MadelineProto/TL/TL.php b/src/danog/MadelineProto/TL/TL.php index 799d3d6d..969d3d0d 100644 --- a/src/danog/MadelineProto/TL/TL.php +++ b/src/danog/MadelineProto/TL/TL.php @@ -78,7 +78,7 @@ trait TL { $tl_method = $this->methods->find_by_method($method); if ($tl_method === false) { - throw new Exception('Could not extract type: '.$method); + throw new Exception('Could not extract method: '.$method); } if (count(array_filter(array_keys($arguments), 'is_string')) == 0) {