-
-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(upload): add support for streamed uploads of Big File
[Streamed uploads](https://core.telegram.org/api/files#streamed-uploads) - A total_stream_size variable must be used to keep track of the total number of bytes read from the stream. - upload.saveBigFilePart must always be used, even if the stream turns out to be smaller than 10MB. - The file_total_parts field must be set to -1 for all parts except for the last one, using the following logic:
- Loading branch information
Showing
3 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters