mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-14 19:06:55 +01:00
40 lines
895 B
Markdown
40 lines
895 B
Markdown
|
---
|
||
|
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 |
|
||
|
|----------|:-------------:|:--------:|------------:|
|
||
|
|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:
|
||
|
|
||
|
```
|
||
|
$updateFileProgress = ['_' => 'updateFileProgress', 'file_id' => int, 'size' => int, 'ready' => int, ];
|
||
|
```
|
||
|
|
||
|
Or, if you're into Lua:
|
||
|
|
||
|
|
||
|
```
|
||
|
updateFileProgress={_='updateFileProgress', file_id=int, size=int, ready=int, }
|
||
|
|
||
|
```
|
||
|
|
||
|
|