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:
parent
0df07f3a37
commit
d67c96a0fd
@ -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'])) {
|
||||
|
Loading…
Reference in New Issue
Block a user