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, ],