mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 03:14:39 +01:00
Fix CDN downloads
This commit is contained in:
parent
bd97e3075e
commit
ce208f9ae1
@ -1089,6 +1089,7 @@ trait Files
|
||||
while ($cdn === false && $res['type']['_'] === 'storage.fileUnknown' && $res['bytes'] === '' && $this->datacenter->has(++$datacenter)) {
|
||||
$res = $this->methodCallAsyncRead('upload.getFile', $basic_param + $offset, ['heavy' => true, 'file' => true, 'FloodWaitLimit' => 0, 'datacenter' => $datacenter]);
|
||||
}
|
||||
$res['bytes'] = (string) $res['bytes'];
|
||||
if ($res['bytes'] === '') {
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user