Bugfixes
This commit is contained in:
parent
af8443caf2
commit
a6232fa43c
@ -42,7 +42,7 @@ echo 'OK, done!'.PHP_EOL;
|
||||
Run this code in a browser or in a console.
|
||||
|
||||
|
||||
Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgroup) the error message and the `Madeline.log` file that was created in the same directory (if running from a browser).
|
||||
Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgroup) the error message and the `MadelineProto.log` file that was created in the same directory (if running from a browser).
|
||||
|
||||
## Documentation
|
||||
|
||||
|
@ -8063,4 +8063,4 @@ class Lang
|
||||
'object_help.configSimple_param_ip_port_list_type_Vector t' => '',
|
||||
'object_inputMessagesFilterMyMentionsUnread' => '',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ class Logger
|
||||
const set = ['bold' => 1, 'dim' => 2, 'underlined' => 3, 'blink' => 4, 'reverse' => 5, 'hidden' => 6];
|
||||
const reset = ['all' => 0, 'bold' => 21, 'dim' => 22, 'underlined' => 24, 'blink' => 25, 'reverse' => 26, 'hidden' => 28];
|
||||
public static $storage = [];
|
||||
public static $mode = 1;
|
||||
public static $mode = 0;
|
||||
public static $optional = null;
|
||||
public static $prefix = '';
|
||||
public static $level = 3;
|
||||
|
@ -750,7 +750,7 @@ trait PeerHandler
|
||||
$res = $this->method_call('contacts.resolveUsername', ['username' => str_replace('@', '', $username)], ['datacenter' => $this->datacenter->curdc]);
|
||||
} catch (\danog\MadelineProto\RPCErrorException $e) {
|
||||
\danog\MadelineProto\Logger::log('Username resolution failed with error '.$e->getMessage(), \danog\MadelineProto\Logger::ERROR);
|
||||
if (strpos($e->rpc, 'FLOOD_WAIT_') === 0) {
|
||||
if (strpos($e->rpc, 'FLOOD_WAIT_') === 0 || $e->rpc === 'AUTH_KEY_UNREGISTERED') {
|
||||
throw $e;
|
||||
}
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user