1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 05:36:56 +01:00
MadelineProto/docs/TD_docs/constructors/updateFileProgress.md

47 lines
1.0 KiB
Markdown
Raw Normal View History

---
title: updateFileProgress
description: File is partly downloaded/uploaded
---
## Constructor: updateFileProgress
[Back to constructors index](index.md)
File is partly downloaded/uploaded
### Attributes:
| Name | Type | Required | Description |
2017-08-20 11:05:56 +02:00
|----------|---------------|----------|-------------|
|file\_id|[int](../types/int.md) | Yes|File identifier|
|size|[int](../types/int.md) | Yes|Total file size (0 means unknown)|
|ready|[int](../types/int.md) | Yes|Number of bytes already downloaded/uploaded. Negative number means that download/upload has failed and was terminated|
### Type: [Update](../types/Update.md)
### Example:
```
2017-07-23 16:33:46 +02:00
$updateFileProgress = ['_' => 'updateFileProgress', 'file_id' => int, 'size' => int, 'ready' => int];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
2017-07-23 16:33:46 +02:00
{"_": "updateFileProgress", "file_id": int, "size": int, "ready": int}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
updateFileProgress={_='updateFileProgress', file_id=int, size=int, ready=int}
```