Fix syntax mistake
This commit is contained in:
parent
ec0a5e4190
commit
606e55d8c6
@ -561,7 +561,7 @@ trait PeerHandler
|
|||||||
try {
|
try {
|
||||||
$res = $this->method_call('contacts.resolveUsername', ['username' => str_replace('@', '', $username)], ['datacenter' => $this->datacenter->curdc]);
|
$res = $this->method_call('contacts.resolveUsername', ['username' => str_replace('@', '', $username)], ['datacenter' => $this->datacenter->curdc]);
|
||||||
} catch (\danog\MadelineProto\RPCErrorException $e) {
|
} catch (\danog\MadelineProto\RPCErrorException $e) {
|
||||||
\danog\MadelineProto\Logger::('Username resolution failed with error '.$e->getMessage(), \danog\MadelineProto\Logger::ERROR);
|
\danog\MadelineProto\Logger::log('Username resolution failed with error '.$e->getMessage(), \danog\MadelineProto\Logger::ERROR);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if ($res['_'] === 'contacts.resolvedPeer') {
|
if ($res['_'] === 'contacts.resolvedPeer') {
|
||||||
|
Loading…
Reference in New Issue
Block a user