mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-26 19:24:42 +01:00
Minor fixes
This commit is contained in:
parent
64b20ead27
commit
b4d9fa69af
2
docs
2
docs
@ -1 +1 @@
|
||||
Subproject commit b5aa55944beab3de3384a300fdcc5c629557fd83
|
||||
Subproject commit 30592a1f89afc48af05d1898acec1cd03d1997ee
|
@ -67,7 +67,7 @@ class SecretHandler extends SimpleEventHandler
|
||||
$this->requestSecretChat($update);
|
||||
}
|
||||
if (($update['message']['message'] ?? '') === 'ping') {
|
||||
$this->messages->sendMessage(['message' => 'pong', 'peer' => $update]);
|
||||
$this->messages->sendMessage(message: 'pong', peer: $update);
|
||||
}
|
||||
}
|
||||
/**
|
||||
|
@ -1037,7 +1037,7 @@ trait UpdateHandler
|
||||
} catch (RPCErrorException $e) {
|
||||
if ($e->rpc === 'SESSION_PASSWORD_NEEDED') {
|
||||
$this->logger->logger(Lang::$current_lang['login_2fa_enabled'], Logger::NOTICE);
|
||||
$this->authorization = $this->methodCallAsyncRead('account.getPassword', [], $datacenter);
|
||||
$this->authorization = $this->methodCallAsyncRead('account.getPassword', [], $datacenter ?? null);
|
||||
if (!isset($this->authorization['hint'])) {
|
||||
$this->authorization['hint'] = '';
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
memory_limit = -1
|
||||
zend.assertions = 1
|
||||
;zend.assertions = 1
|
||||
display_errors = On
|
||||
display_startup_errors = On
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user