1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-22 13:31:21 +01:00

Fix CDN file downloads

This commit is contained in:
Daniil Gentili 2023-08-06 21:15:02 +02:00
parent 423cc1c2b5
commit 9a91c97b6e
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -44,7 +44,7 @@ trait TLParams
if (\in_array($param['name'], ['key_fingerprint', 'server_salt', 'new_server_salt', 'ping_id', 'exchange_id'], true) && $param['type'] === 'long') {
$param['type'] = 'strlong';
} elseif (\in_array($param['name'], ['peer_tag', 'file_token', 'cdn_key', 'cdn_iv'], true)) {
} elseif (\in_array($param['name'], ['peer_tag', 'file_token', 'cdn_key', 'cdn_iv', 'encryption_key', 'encryption_iv'], true)) {
$param['type'] = 'string';
} elseif ($param['name'] === 'server_public_key_fingerprints') {
$param['subtype'] = 'strlong';