mirror of
https://github.com/danog/tg-file-decoder.git
synced 2024-11-26 12:24:40 +01:00
BC fix
This commit is contained in:
parent
b25d8033e2
commit
2c60ddf413
@ -497,7 +497,7 @@ function internalDecode(string $fileId): array
|
||||
fixLong($result, 'access_hash');
|
||||
|
||||
if ($result['typeId'] <= PHOTO) {
|
||||
$parsePhotoSize = function () use (&$result, &$fileId): void {
|
||||
$parsePhotoSize = function () use (&$result, &$fileId) {
|
||||
$result['photosize_source'] = $result['subVersion'] >= 4 ? \unpack('V', \stream_get_contents($fileId, 4))[1] : 0;
|
||||
switch ($result['photosize_source']) {
|
||||
case PHOTOSIZE_SOURCE_LEGACY:
|
||||
|
Loading…
Reference in New Issue
Block a user