diff --git a/src/danog/MadelineProto/MTProtoTools/Files.php b/src/danog/MadelineProto/MTProtoTools/Files.php index 979b5b644..5b0ec2867 100644 --- a/src/danog/MadelineProto/MTProtoTools/Files.php +++ b/src/danog/MadelineProto/MTProtoTools/Files.php @@ -244,6 +244,7 @@ trait Files if (isset($photo['location']['bytes'])) { $res['size'] = strlen($photo['location']['bytes']); } + return $res; case 'photoSize': case 'photoCachedSize':