diff --git a/src/danog/MadelineProto/Connection.php b/src/danog/MadelineProto/Connection.php index 7809e2af..3b2bfe0d 100644 --- a/src/danog/MadelineProto/Connection.php +++ b/src/danog/MadelineProto/Connection.php @@ -407,6 +407,9 @@ class Connection if (isset($arguments['file']['iv'])) { $arguments['message']['media']['iv'] = $arguments['file']['iv']; } + if (isset($arguments['file']['size'])) { + $arguments['message']['media']['size'] = $arguments['file']['size']; + } } $arguments['queuePromise'] = new Deferred; return $arguments['queuePromise']; diff --git a/src/danog/MadelineProto/MTProtoTools/Files.php b/src/danog/MadelineProto/MTProtoTools/Files.php index 1711a401..430ed01a 100644 --- a/src/danog/MadelineProto/MTProtoTools/Files.php +++ b/src/danog/MadelineProto/MTProtoTools/Files.php @@ -222,6 +222,7 @@ trait Files $constructor['key_fingerprint'] = $fingerprint; $constructor['key'] = $key; $constructor['iv'] = $iv; + $constructor['size'] = $size; } $constructor['md5_checksum'] = ''; //\hash_final($ctx);