This commit is contained in:
Daniil Gentili 2018-05-25 16:48:23 +02:00
commit 329a5e2f7b
1 changed files with 1 additions and 1 deletions

View File

@ -385,7 +385,7 @@ $output_file_name = $MadelineProto->download_to_file(
);
```
This will send the file `video.mp4` to [@danogentili](https://t.me/danogentili): while uploading, he will receive progress messages `Upload progress: 24%` until the upload is complete; while uploading, he will receive progress messages `Download progress: 34%` until the download is complete.
This will send the file `video.mp4` to [@danogentili](https://t.me/danogentili): while uploading, he will receive progress messages `Upload progress: 24%` until the upload is complete; while downloading, he will receive progress messages `Download progress: 34%` until the download is complete.
A FileCallback object can be provided to `uploadMedia`, `sendMedia`, `uploadProfilePicture`, `upload`, `upload_encrypted`, `download_to_*`: the first parameter to its constructor must be the file path/object that is usually accepted by the function, the second must be a callable function or object.