mirror of
https://github.com/danog/MadelineProto.git
synced 2025-01-23 06:31:11 +01:00
Fixup docs
This commit is contained in:
parent
f3403a5a1c
commit
db60a0b953
@ -24,7 +24,7 @@ use Traversable;
|
||||
* DB array interface.
|
||||
*
|
||||
* @psalm-type TOrmConfig=array{serializer?: SerializerType, enableCache?: bool, cacheTtl?: int, table?: string}
|
||||
*
|
||||
*
|
||||
* @template TKey as array-key
|
||||
* @template TValue
|
||||
*
|
||||
|
@ -69,6 +69,9 @@ trait Constructors
|
||||
if (\in_array($param['name'], ['flags', 'flags2', 'random_id', 'random_bytes'], true)) {
|
||||
continue;
|
||||
}
|
||||
if ($param['name'] === 'peer' && $param['type'] === 'Peer') {
|
||||
$param['type'] = 'long';
|
||||
}
|
||||
if ($type === 'EncryptedMessage' && $param['name'] === 'bytes' && !isset($this->settings['td'])) {
|
||||
$param['name'] = 'decrypted_message';
|
||||
$param['type'] = 'DecryptedMessage';
|
||||
|
@ -1063,8 +1063,9 @@ final class TL implements TLInterface
|
||||
$x = -$x['chat_id'];
|
||||
} elseif ($x['_'] === 'peerChannel') {
|
||||
$x = DialogId::toSupergroupOrChannel($x['channel_id']);
|
||||
} else {
|
||||
unset($x['flags'], $x['flags2']);
|
||||
}
|
||||
unset($x['flags'], $x['flags2']);
|
||||
return $x;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user