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:
parent
52ddfc4a42
commit
f56b5b733c
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user