1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 10:34:38 +01:00
This commit is contained in:
Daniil Gentili 2023-07-16 20:31:44 +02:00
parent e60c58615f
commit dc56b08771

View File

@ -110,7 +110,7 @@ trait FileServer
$messageMedia['mime'] ??= $mime;
$messageMedia['name'] ??= $name;
$f = is_string($f) ? $f : $this->extractBotAPIFile($this->MTProtoToBotAPI($media))['file_id'];
$f = is_string($media) ? $media : ($this->extractBotAPIFile($this->MTProtoToBotAPI($media))['file_id']);
[
'name' => $name,
'ext' => $ext,