From a5878256958f98f49ee4c7acdb5fd74dd16be59b Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Wed, 4 Mar 2020 19:40:36 +0100 Subject: [PATCH] fixx --- docs/docs/FILES.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/FILES.md b/docs/docs/FILES.md index 8ff88407..64e97d0b 100644 --- a/docs/docs/FILES.md +++ b/docs/docs/FILES.md @@ -498,7 +498,7 @@ $output_file_name = yield $MadelineProto->downloadToFile( Actual MessageMedia objects can also be converted to bot API file IDs like this: ```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: @@ -542,4 +542,4 @@ if (!isset($result['file_name'])) { * `$result['file_size']` - File size * `$result['file_name']` - File name -Next section \ No newline at end of file +Next section