1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 07:18:57 +01:00

Add $cb to downloadToFile

This commit is contained in:
AhJ 2023-09-24 11:40:54 +03:30 committed by GitHub
parent 52ddfc4a42
commit f56b5b733c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -130,7 +130,7 @@ abstract class Media extends AbstractMedia
*/
public function downloadToFile(string $file, ?callable $cb = null): string
{
return $this->getClient()->downloadToFile($this, $file);
return $this->getClient()->downloadToFile($this, $file, $cb);
}
/** @internal */