From ec5b3e2d18eb6691883941c7077703cb4227acac Mon Sep 17 00:00:00 2001 From: danogentili Date: Wed, 23 Aug 2017 15:53:24 +0300 Subject: [PATCH] Small fix --- src/danog/MadelineProto/TL/TL.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()