Bugfix
This commit is contained in:
parent
2680b68751
commit
4cc983b234
@ -38,7 +38,7 @@ trait UpdateHandler
|
||||
}
|
||||
}
|
||||
if (isset($this->settings['pwr']['update_handler'])) {
|
||||
$this->settings['pwr']['update_handler'] === 'get_updates_update_handler' ? $this->get_updates_update_handler($update) : $this->settings['pwr']['update_handler']($update);
|
||||
in_array($this->settings['pwr']['update_handler'], [['danog\MadelineProto\API', 'get_updates_update_handler'], 'get_updates_update_handler']) ? $this->get_updates_update_handler($update) : $this->settings['pwr']['update_handler']($update);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -14,8 +14,11 @@ namespace danog\MadelineProto\Wrappers;
|
||||
|
||||
trait DialogHandler
|
||||
{
|
||||
public function get_dialogs()
|
||||
public function get_dialogs($force = false)
|
||||
{
|
||||
if (!isset($this->dialog_params['offset_date']) || $force) {
|
||||
$this->dialog_params = ['limit' => 0, 'offset_date' => 0, 'offset_id' => 0, 'offset_peer' => ['_' => 'inputPeerEmpty']];
|
||||
}
|
||||
$this->getting_state = true;
|
||||
$res = ['dialogs' => [0]];
|
||||
$datacenter = $this->datacenter->curdc;
|
||||
|
Loading…
Reference in New Issue
Block a user