Merge branch 'master' of https://github.com/danog/MadelineProto
This commit is contained in:
commit
2cb942b407
@ -21,7 +21,7 @@ class Exception extends \Exception
|
||||
return $this->file === 'MadelineProto' ? $this->message : '\danog\MadelineProto\Exception'.($this->message !== '' ? ': ' : '').$this->message.' in '.$this->file.':'.$this->line.PHP_EOL.'TL Trace (YOU ABSOLUTELY MUST READ THE TEXT BELOW):'.PHP_EOL.$this->getTLTrace();
|
||||
}
|
||||
|
||||
public function __construct($message = null, $code = 0, Exception $previous = null, $file = null, $line = null)
|
||||
public function __construct($message = null, $code = 0, self $previous = null, $file = null, $line = null)
|
||||
{
|
||||
$this->prettify_tl();
|
||||
if ($file !== null) {
|
||||
|
@ -192,7 +192,6 @@ class MTProto
|
||||
private $emojis;
|
||||
private $postpone_updates = false;
|
||||
|
||||
|
||||
public function ___construct($settings = [])
|
||||
{
|
||||
// Parse settings
|
||||
|
@ -374,6 +374,7 @@ trait ResponseHandler
|
||||
if ($this->postpone_updates) {
|
||||
\danog\MadelineProto\Logger::log(['Postpone update handling'], \danog\MadelineProto\Logger::VERBOSE);
|
||||
$this->pending_updates[] = $updates;
|
||||
|
||||
return false;
|
||||
}
|
||||
$this->handle_pending_updates();
|
||||
|
@ -30,6 +30,7 @@ trait DialogHandler
|
||||
$peers = [];
|
||||
|
||||
$this->postpone_updates = true;
|
||||
|
||||
try {
|
||||
while ($this->dialog_params['count'] < $res['count']) {
|
||||
\danog\MadelineProto\Logger::log([\danog\MadelineProto\Lang::$current_lang['getting_dialogs']]);
|
||||
|
Loading…
Reference in New Issue
Block a user