This commit is contained in:
Daniil Gentili 2020-03-04 19:40:36 +01:00
parent 3db8e3e47a
commit a587825695
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -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: