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']); }