diff --git a/src/danog/MadelineProto/TL/TL.php b/src/danog/MadelineProto/TL/TL.php index 9fc6432c7..b8c9cd153 100644 --- a/src/danog/MadelineProto/TL/TL.php +++ b/src/danog/MadelineProto/TL/TL.php @@ -359,7 +359,7 @@ trait TL $constructorData = $this->constructors->find_by_predicate($predicate, $layer); if ($constructorData === false) { \danog\MadelineProto\Logger::log([$object], \danog\MadelineProto\Logger::FATAL_ERROR); - throw new Exception('Could not extract type'); + throw new Exception('Could not extract type "'.$predicate.'"'); } if ($bare = ($type['type'] != '' && $type['type'][0] === '%')) {