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

48 lines
1.4 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:
```
2017-07-23 16:33:46 +02:00
$inputFileGenerated = ['_' => 'inputFileGenerated', 'original_path' => 'string', 'conversion' => 'string', 'expected_size' => int, 'should_cache' => Bool];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
2017-07-23 16:33:46 +02:00
{"_": "inputFileGenerated", "original_path": "string", "conversion": "string", "expected_size": int, "should_cache": Bool}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
inputFileGenerated={_='inputFileGenerated', original_path='string', conversion='string', expected_size=int, should_cache=Bool}
```