Skip to content

Commit

Permalink
Fix: Disable id.pwrtelegram.xyz requests
Browse files Browse the repository at this point in the history
  • Loading branch information
xtrime-ru committed Feb 19, 2022
1 parent 92f577f commit 32b0cc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/danog/MadelineProto/Settings/Pwr.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ class Pwr extends SettingsAbstract
/**
* Whether to try resolving usernames using PWRTelegram DB.
*/
protected bool $requests = true;
protected bool $requests = false;
/**
* DB token.
*/
protected string $dbToken = '';

public function mergeArray(array $settings): void
{
$this->requests = $settings['pwr']['requests'] ?? true;
$this->requests = $settings['pwr']['requests'] ?? false;
$this->dbToken = $settings['pwr']['db_token'] ?? '';
}

Expand Down

0 comments on commit 32b0cc5

Please sign in to comment.