1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 01:14:39 +01:00

Small bugfix

This commit is contained in:
Daniil Gentili 2023-09-23 15:18:45 +02:00
parent 2a4dc9c9ab
commit f1a14da038
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 4 additions and 2 deletions

2
docs

@ -1 +1 @@
Subproject commit d5a18d7fd3a58fa5bfd5b9145a7d43fbc2c4cb74
Subproject commit cad57ac8e45ff6776dfa59c8e658831b17956f8e

View File

@ -740,7 +740,8 @@ final class TL implements TLInterface
});
}
if ($type === 'InputFile' && (!\is_array($value) || !(isset($value['_']) && $this->constructors->findByPredicate($value['_'])['type'] === 'InputFile'))) {
$value = ($this->API->upload($value));
$value = $this->API->upload($value);
$arguments[$name] = $value;
}
if ($type === 'InputEncryptedChat' && (!\is_array($value) || isset($value['_']) && $this->constructors->findByPredicate($value['_'])['type'] !== $type)) {
if (\is_array($value)) {
@ -751,6 +752,7 @@ final class TL implements TLInterface
}
$value = $this->API->getSecretChat($value)['InputEncryptedChat'];
}
$arguments[$name] = $value;
}
//$this->API->logger->logger('Serializing '.$name.' of type '.$current_argument['type');
$serialized .= ($this->serializeObject($current_argument, $value, $name, $layer));