Update FILES.md

This commit is contained in:
Daniil Gentili 2018-07-15 14:05:51 +02:00 committed by GitHub
parent 1554397b68
commit b21afc592a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -377,7 +377,7 @@ $sentMessage = $MadelineProto->messages->sendMedia([
$output_file_name = $MadelineProto->download_to_file(
$sentMessage,
new \danog\MadelineProto\FileCallback(
'/tmp/myname.mp4'
'/tmp/myname.mp4',
function ($progress) use ($MadelineProto, $peer) {
$MadelineProto->messages->sendMessage(['peer' => $peer, 'message' => 'Download progress: '.$progress.'%']);
}
@ -431,4 +431,4 @@ $output_file_name = $MadelineProto->download_to_file(
);
```
<a href="https://docs.madelineproto.xyz/docs/CHAT_INFO.html">Next section</a>
<a href="https://docs.madelineproto.xyz/docs/CHAT_INFO.html">Next section</a>