Update docs
This commit is contained in:
parent
64dea0245f
commit
80072aa37b
@ -355,7 +355,7 @@ This downloads the given file to `/tmp/myname.mp4`, and returns the full file pa
|
|||||||
yield $MadelineProto->downloadToStream($MessageMedia, $stream);
|
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.
|
`$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_size']` - File size
|
||||||
* `$result['file_name']` - File name
|
* `$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>
|
||||||
|
Loading…
Reference in New Issue
Block a user