From 21750f8d6806d1d228be8453313f466c2b6fd420 Mon Sep 17 00:00:00 2001 From: Alexander Pankratov Date: Sat, 23 May 2020 03:49:20 +0300 Subject: [PATCH] Allow downloadToResponse for media without size --- src/danog/MadelineProto/MTProtoTools/Files.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/MTProtoTools/Files.php b/src/danog/MadelineProto/MTProtoTools/Files.php index 70b9106c..a64d89fa 100644 --- a/src/danog/MadelineProto/MTProtoTools/Files.php +++ b/src/danog/MadelineProto/MTProtoTools/Files.php @@ -645,7 +645,7 @@ trait Files */ public function getPropicInfo($data): \Generator { - return yield from $this->getDownloadInfo($this->chats[(yield from $this->getInfo($data))['bot_api_id']]); + return yield from $this->getDownloadInfo(yield $this->chats[(yield from $this->getInfo($data))['bot_api_id']]); } /** * Extract file info from bot API message.