mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 01:14:39 +01:00
Small bugfix
This commit is contained in:
parent
2a4dc9c9ab
commit
f1a14da038
2
docs
2
docs
@ -1 +1 @@
|
||||
Subproject commit d5a18d7fd3a58fa5bfd5b9145a7d43fbc2c4cb74
|
||||
Subproject commit cad57ac8e45ff6776dfa59c8e658831b17956f8e
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user