diff --git a/docs/API_docs/methods/account_acceptAuthorization.md b/docs/API_docs/methods/account_acceptAuthorization.md index cc172390..b92ec185 100644 --- a/docs/API_docs/methods/account_acceptAuthorization.md +++ b/docs/API_docs/methods/account_acceptAuthorization.md @@ -1,13 +1,13 @@ --- title: account.acceptAuthorization -description: Accept telegram password authorization +description: Accept telegram passport authorization image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: account.acceptAuthorization [Back to methods index](index.md) -Accept telegram password authorization +Accept telegram passport authorization ### Parameters: diff --git a/docs/API_docs/methods/index.md b/docs/API_docs/methods/index.md index 8aab3791..d4cc69e8 100644 --- a/docs/API_docs/methods/index.md +++ b/docs/API_docs/methods/index.md @@ -28,7 +28,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) -* Accept telegram password authorization: account.acceptAuthorization +* Accept telegram passport authorization: account.acceptAuthorization * Accept telegram's TOS: help.acceptTermsOfService @@ -216,8 +216,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Get featured stickers: messages.getFeaturedStickers -* Get file hashes: upload.getFileHashes - * Get high scores of a game sent in an inline message: messages.getInlineGameHighScores * Get high scores of a game: messages.getGameHighScores diff --git a/docs/API_docs/methods/upload_getFileHashes.md b/docs/API_docs/methods/upload_getFileHashes.md index fb3cd61a..debeb60d 100644 --- a/docs/API_docs/methods/upload_getFileHashes.md +++ b/docs/API_docs/methods/upload_getFileHashes.md @@ -7,65 +7,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png [Back to methods index](index.md) -Get file hashes - -### Parameters: - -| Name | Type | Required | Description | -|----------|---------------|----------|-------------| -|location|[InputFileLocation](../types/InputFileLocation.md) | Yes|The file| -|offset|[int](../types/int.md) | Yes|Offset| - - -### Return type: [Vector\_of\_FileHash](../types/FileHash.md) - -### Can bots use this method: **YES** - - -### MadelineProto Example: - - -``` -if (!file_exists('madeline.php')) { - copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php'); -} -include 'madeline.php'; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline'); -$MadelineProto->start(); - -$Vector_of_FileHash = $MadelineProto->upload->getFileHashes(['location' => InputFileLocation, 'offset' => int, ]); -``` - -### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): - -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - upload.getFileHashes -* params - `{"location": InputFileLocation, "offset": int, }` - - - -### As a user: - -POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/upload.getFileHashes` - -Parameters: - -location - Json encoded InputFileLocation - -offset - Json encoded int +**You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info** -Or, if you're into Lua: - -``` -Vector_of_FileHash = upload.getFileHashes({location=InputFileLocation, offset=int, }) -``` -