Fixes for dialog fetching

This commit is contained in:
Daniil Gentili 2017-10-24 13:43:24 +03:00
parent bc4d907a46
commit c668f5933f

View File

@ -19,7 +19,8 @@ trait DialogHandler
if ($force ||
!isset($this->dialog_params['offset_date']) || is_null($this->dialog_params['offset_date']) ||
!isset($this->dialog_params['offset_id']) || is_null($this->dialog_params['offset_id']) ||
!isset($this->dialog_params['offset_peer']) || is_null($this->dialog_params['offset_peer'])
!isset($this->dialog_params['offset_peer']) || is_null($this->dialog_params['offset_peer']) ||
!isset($this->dialog_params['count']) || is_null($this->dialog_params['count'])
) {
$this->dialog_params = ['limit' => 0, 'offset_date' => 0, 'offset_id' => 0, 'offset_peer' => ['_' => 'inputPeerEmpty'], 'count' => 0];
}