1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 07:14:39 +01:00

Add photoSizeProgressive support

This commit is contained in:
Alexander Pankratov 2021-02-14 03:39:47 +03:00
parent f0d714e548
commit 06bc28e093

View File

@ -697,6 +697,13 @@ trait Files
$res['size'] = $messageMedia['size']; $res['size'] = $messageMedia['size'];
} }
return $res; return $res;
case 'photoSizeProgressive':
$res = (yield from $this->getDownloadInfo($messageMedia['location']));
$res['thumb_size'] = $messageMedia['type'];
if (isset($messageMedia['sizes'])) {
$res['size'] = end($messageMedia['sizes']);
}
return $res;
case 'fileLocationUnavailable': case 'fileLocationUnavailable':
throw new \danog\MadelineProto\Exception('File location unavailable'); throw new \danog\MadelineProto\Exception('File location unavailable');
case 'fileLocation': case 'fileLocation':