diff --git a/src/danog/MadelineProto/TL/TL.php b/src/danog/MadelineProto/TL/TL.php index 12d362dd..80510515 100644 --- a/src/danog/MadelineProto/TL/TL.php +++ b/src/danog/MadelineProto/TL/TL.php @@ -220,7 +220,8 @@ trait TL { $res = []; foreach ($this->methods->method_namespace as $pair) { - $res[$pair[0]] = $pair[0]; + list($a, $b) = $pair; + $res[$a] = $a; } return $res;