mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-15 02:26:55 +01:00
1.0 KiB
1.0 KiB
title | description |
---|---|
updateFileProgress | File is partly downloaded/uploaded |
Constructor: updateFileProgress
File is partly downloaded/uploaded
Attributes:
Name | Type | Required | Description |
---|---|---|---|
file_id | int | Yes | File identifier |
size | int | Yes | Total file size (0 means unknown) |
ready | int | Yes | Number of bytes already downloaded/uploaded. Negative number means that download/upload has failed and was terminated |
Type: Update
Example:
$updateFileProgress = ['_' => 'updateFileProgress', 'file_id' => int, 'size' => int, 'ready' => int];
PWRTelegram json-encoded version:
{"_": "updateFileProgress", "file_id": int, "size": int, "ready": int}
Or, if you're into Lua:
updateFileProgress={_='updateFileProgress', file_id=int, size=int, ready=int}