diff --git a/src/danog/MadelineProto/MTProtoTools/PeerHandler.php b/src/danog/MadelineProto/MTProtoTools/PeerHandler.php index e5e7cc9a..68a49e68 100644 --- a/src/danog/MadelineProto/MTProtoTools/PeerHandler.php +++ b/src/danog/MadelineProto/MTProtoTools/PeerHandler.php @@ -430,7 +430,9 @@ trait PeerHandler $res['participants'][$key] = $newres; } $gres = $this->method_call('channels.getParticipants', ['channel' => $full['InputChannel'], 'filter' => ['_' => 'channelParticipantsRecent'], 'offset' => $offset += $limit, 'limit' => $limit]); - if (empty($gres['participants'])) break; + if (empty($gres['participants'])) { + break; + } } } if ($fullfetch || $send) { diff --git a/src/danog/MadelineProto/MTProtoTools/UpdateHandler.php b/src/danog/MadelineProto/MTProtoTools/UpdateHandler.php index 7c0eda45..9fdbcc3d 100644 --- a/src/danog/MadelineProto/MTProtoTools/UpdateHandler.php +++ b/src/danog/MadelineProto/MTProtoTools/UpdateHandler.php @@ -451,11 +451,11 @@ trait UpdateHandler } if ($channel === false) { foreach ($updates as $update) { - $this->handle_update($update, $options); + $this->handle_update($update, $options); } } else { foreach ($updates as $update) { - $this->handle_update($update); + $this->handle_update($update); } } }