MadelineProto/docs/TD_docs/constructors/inputFileGenerated.md
Daniil Gentili 9d77dc0919 AMP fixes
2017-08-20 09:05:56 +00:00

48 lines
1.4 KiB
Markdown

---
title: inputFileGenerated
description: File generated by the client
---
## Constructor: inputFileGenerated
[Back to constructors index](index.md)
File generated by the client
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|original\_path|[string](../types/string.md) | Yes|Local path to a file from which the file is generated, may be empty if there is no such file|
|conversion|[string](../types/string.md) | Yes|String specifying conversion applied to the original file, should be persistent across application restart|
|expected\_size|[int](../types/int.md) | Yes|Expected size of the generated file|
|should\_cache|[Bool](../types/Bool.md) | Yes|True, if result of the conversion should be cached persistently|
### Type: [InputFile](../types/InputFile.md)
### Example:
```
$inputFileGenerated = ['_' => 'inputFileGenerated', 'original_path' => 'string', 'conversion' => 'string', 'expected_size' => int, 'should_cache' => Bool];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "inputFileGenerated", "original_path": "string", "conversion": "string", "expected_size": int, "should_cache": Bool}
```
Or, if you're into Lua:
```
inputFileGenerated={_='inputFileGenerated', original_path='string', conversion='string', expected_size=int, should_cache=Bool}
```