fixx
This commit is contained in:
parent
3db8e3e47a
commit
a587825695
@ -498,7 +498,7 @@ $output_file_name = yield $MadelineProto->downloadToFile(
|
|||||||
Actual MessageMedia objects can also be converted to bot API file IDs like this:
|
Actual MessageMedia objects can also be converted to bot API file IDs like this:
|
||||||
|
|
||||||
```php
|
```php
|
||||||
$botAPI_file = yield $MadelineProto->MTProto_to_botAPI($MessageMedia);
|
$botAPI_file = yield $MadelineProto->MTProtoToBotAPI($MessageMedia);
|
||||||
```
|
```
|
||||||
|
|
||||||
`$botAPI_file` now contains a [bot API message](https://core.telegram.org/bots/api#message), to extract the file ID from it use the following code:
|
`$botAPI_file` now contains a [bot API message](https://core.telegram.org/bots/api#message), to extract the file ID from it use the following code:
|
||||||
@ -542,4 +542,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