1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 10:19:00 +01:00

Fix the bug which spoiler wasn't applied in some conditions

This commit is contained in:
amir 2024-03-07 01:25:17 +03:30
parent 0df07f3a37
commit d67c96a0fd

View File

@ -578,6 +578,9 @@ trait Files
if (isset($media['ttl_seconds'])) {
$res['InputMedia']['ttl_seconds'] = $media['ttl_seconds'];
}
if (isset($media['spoiler'])) {
$res['InputMedia']['spoiler'] = $media['spoiler'];
}
break;
case 'messageMediaDocument':
if (!isset($media['document']['access_hash'])) {