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:
parent
f0d714e548
commit
06bc28e093
@ -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':
|
||||||
|
Loading…
Reference in New Issue
Block a user