1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 09:16:55 +01:00
MadelineProto/docs/TD_docs/constructors/inputFileGenerated.md

41 lines
1.2 KiB
Markdown
Raw Normal View History

---
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, ];
```
Or, if you're into Lua:
```
inputFileGenerated={_='inputFileGenerated', original_path=string, conversion=string, expected_size=int, should_cache=Bool, }
```