1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-23 06:31:11 +01:00

Fixup docs

This commit is contained in:
Daniil Gentili 2023-12-12 17:25:54 +01:00
parent f3403a5a1c
commit db60a0b953
3 changed files with 6 additions and 2 deletions

View File

@ -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
*

View File

@ -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';

View File

@ -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;
}
}