mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 10:19:00 +01:00
Merge pull request #900 from danog/photo_size_progressive
Add photoSizeProgressive support
This commit is contained in:
commit
9094c19687
@ -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