1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 14:27:00 +01:00
MadelineProto/docs/TD_docs/constructors/updateFileGenerationProgress.md
Daniil Gentili 9d77dc0919 AMP fixes
2017-08-20 09:05:56 +00:00

1.1 KiB

title description
updateFileGenerationProgress Informs that a file is being generated

Constructor: updateFileGenerationProgress

Back to constructors index

Informs that a file is being generated

Attributes:

Name Type Required Description
file_id int Yes File identifier
size int Yes Expected size of the generated file
ready int Yes Number of bytes already generated. Negative number means that generation has failed and was terminated

Type: Update

Example:

$updateFileGenerationProgress = ['_' => 'updateFileGenerationProgress', 'file_id' => int, 'size' => int, 'ready' => int];

PWRTelegram json-encoded version:

{"_": "updateFileGenerationProgress", "file_id": int, "size": int, "ready": int}

Or, if you're into Lua:

updateFileGenerationProgress={_='updateFileGenerationProgress', file_id=int, size=int, ready=int}