From 4610ccfb8526e610791fe71643b66cccc2179b61 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 4 May 2017 16:56:10 +0200 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 a2fad15e..fb746512 100644 --- a/src/danog/MadelineProto/MTProtoTools/PeerHandler.php +++ b/src/danog/MadelineProto/MTProtoTools/PeerHandler.php @@ -211,7 +211,7 @@ trait PeerHandler return $this->gen_all($this->chats[$id]); } } - if (!isset($this->settings['pwr']) || $this->settings['pwr']['requests'] === true) { + if (!isset($this->settings['pwr']['request']) || $this->settings['pwr']['requests'] === true) { $dbres = json_decode(file_get_contents('https://id.pwrtelegram.xyz/db/getusername?id='.$id, false, stream_context_create(['http'=> [ 'timeout' => 2, ],