mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 04:35:12 +01:00
Add photoSizeProgressive support
This commit is contained in:
parent
f0d714e548
commit
06bc28e093
@ -697,6 +697,13 @@ trait Files
|
||||
$res['size'] = $messageMedia['size'];
|
||||
}
|
||||
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':
|
||||
throw new \danog\MadelineProto\Exception('File location unavailable');
|
||||
case 'fileLocation':
|
||||
|
Loading…
Reference in New Issue
Block a user