From a20149b9989c5157d7c63e0dd12951947742534a Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 27 Jan 2017 23:26:55 +0100 Subject: [PATCH] Bugfix --- src/danog/MadelineProto/MTProtoTools/PeerHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/MTProtoTools/PeerHandler.php b/src/danog/MadelineProto/MTProtoTools/PeerHandler.php index 379299e7..047d5153 100644 --- a/src/danog/MadelineProto/MTProtoTools/PeerHandler.php +++ b/src/danog/MadelineProto/MTProtoTools/PeerHandler.php @@ -200,7 +200,7 @@ trait PeerHandler return $this->gen_all($this->chats[$id]); } } - $dbres = file_get_contents('https://id.pwrtelegram.xyz/db/getusername?id='.$id); + $dbres = json_decode(file_get_contents('https://id.pwrtelegram.xyz/db/getusername?id='.$id), true); if ($dbres['ok']) { return $this->gen_all('@'.$dbres['username']); }