Allow downloadToResponse for media without size
This commit is contained in:
parent
ddc81d8764
commit
21750f8d68
@ -645,7 +645,7 @@ trait Files
|
|||||||
*/
|
*/
|
||||||
public function getPropicInfo($data): \Generator
|
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.
|
* Extract file info from bot API message.
|
||||||
|
Loading…
Reference in New Issue
Block a user