diff --git a/CHANGELOG.md b/CHANGELOG.md index bcc0306e..2d12e586 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ * Improved message splitting algorithm: performance improvements, and it will now notify you via the logs if there are too many entities in the logs, or if the entities are too long. * Improved get_self method. * Rewritten proxy stack - +* magic sleep Things to expect in the next releases: Document async apis diff --git a/docs b/docs index e8e22ca1..af0458d4 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit e8e22ca165ac1bc8a7435d5d55b3e94b1883d9d8 +Subproject commit af0458d42d1a6dccea3335afbfaf9e774a8550ff diff --git a/src/danog/MadelineProto/DataCenter.php b/src/danog/MadelineProto/DataCenter.php index 92d8328f..32cc8a1c 100644 --- a/src/danog/MadelineProto/DataCenter.php +++ b/src/danog/MadelineProto/DataCenter.php @@ -209,7 +209,7 @@ class DataCenter $combos[] = [[DefaultStream::getName(), []], [BufferedRawStream::getName(), []], [ObfuscatedStream::getName(), $extra], [IntermediatePaddedStream::getName(), []]]; } - if (is_array($this->settings[$dc_config_number]['proxy'])) { + if (is_iterable($this->settings[$dc_config_number]['proxy'])) { $proxies = $this->settings[$dc_config_number]['proxy']; $proxy_extras = $this->settings[$dc_config_number]['proxy_extra']; } else {