diff --git a/src/danog/MadelineProto/TL/TL.php b/src/danog/MadelineProto/TL/TL.php index 211ade1a6..00f6da307 100644 --- a/src/danog/MadelineProto/TL/TL.php +++ b/src/danog/MadelineProto/TL/TL.php @@ -218,7 +218,9 @@ trait TL public function get_method_namespaces() { - return array_unique($this->array_values($this->methods->method_namespace)); + $res = []; + foreach ($this->methods->method_namespace as $pair) { $res[$pair[0]] = $pair[0]; } + return $res; } public function get_methods_namespaced()