1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-26 21:14:43 +01:00

Fix IPC upload of stream thumbnails

This commit is contained in:
Daniil Gentili 2024-05-29 21:29:01 +02:00
parent ae2e4a1692
commit e1e2c3ddc2

View File

@ -298,6 +298,9 @@ trait FilesLogic
if ($upload && isset($media['file']) && !\is_array($media['file'])) {
$media['file'] = $this->upload($media['file'], cancellation: $cancellation);
}
if ($upload && isset($media['thumb']) && !\is_array($media['thumb'])) {
$media['thumb'] = $this->upload($media['thumb'], cancellation: $cancellation);
}
}
/**
* Upload file.