Allow downloadToResponse for media without size

This commit is contained in:
Alexander Pankratov 2020-05-23 03:49:20 +03:00
parent ddc81d8764
commit 21750f8d68
1 changed files with 1 additions and 1 deletions

View File

@ -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.