Update docs

This commit is contained in:
Daniil Gentili 2019-12-29 14:21:09 +01:00
parent 64dea0245f
commit 80072aa37b
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -355,7 +355,7 @@ This downloads the given file to `/tmp/myname.mp4`, and returns the full file pa
yield $MadelineProto->downloadToStream($MessageMedia, $stream);
```
This downloads the given file to the given resource or [async AMPHP stream](https://github.com/amphp/byte-stream).
This downloads the given file to the given resource or [async AMPHP stream](https://github.com/amphp/byte-stream), the latter is especially useful for building an async HTTP file server with [http-server](https://github.com/amphp/http-server).
`$MessageMedia`can be either a [Message](https://docs.madelineproto.xyz/API_docs/types/Message.html), an [Update](https://docs.madelineproto.xyz/API_docs/types/Update.html), a [MessageMedia](https://docs.madelineproto.xyz/API_docs/types/MessageMedia.html) object, or a bot API file ID.
@ -528,4 +528,4 @@ if (!isset($result['file_name'])) {
* `$result['file_size']` - File size
* `$result['file_name']` - File name
<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>