support multiple schemas for photoStrippedSize (#853)
This commit is contained in:
parent
d3dc7a0155
commit
2b4398bee1
@ -815,7 +815,7 @@ trait Files
|
||||
$res['InputFileLocation']['dc_id'] = $messageMedia['dc_id'];
|
||||
return $res;
|
||||
case 'photoStrippedSize':
|
||||
$res['size'] = \strlen($messageMedia['bytes']);
|
||||
$res['size'] = \strlen($messageMedia['bytes']['bytes'] ?? $messageMedia['bytes']);
|
||||
$res['data'] = $messageMedia['bytes'];
|
||||
$res['thumb_size'] = 'JPG';
|
||||
return $res;
|
||||
|
Loading…
x
Reference in New Issue
Block a user