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