diff --git a/data/web/corefork.telegram.org/api/files.html b/data/web/corefork.telegram.org/api/files.html index 24ca62231e..ce7c237cf2 100644 --- a/data/web/corefork.telegram.org/api/files.html +++ b/data/web/corefork.telegram.org/api/files.html @@ -118,11 +118,11 @@ After the entire file is successfully saved, the final method may be called and
This is useful for example when converting a video, to avoid buffering the entire converted video on the filesystem, each part is uploaded immediately as soon as it is produced by the encoder.
Everything works similarly to normal uploads, with a few key differences:
part_size
bytes before immediately uploading the part as described in the previous section. part_size
bytes (or less if the stream ends) before immediately uploading the part as described in the previous section. file_total_parts
field must be set to -1
for all parts except for the last one, using the following logic:file_total_parts=ceil(totalFileSize/partSize)
(like for normal uploads)strlen(bytes)=0
), setting file_total_parts=ceil(totalFileSize/partSize)
(like for normal uploads)file_total_parts=ceil(totalFileSize/partSize)
(like for normal uploads)