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

48 lines
1.2 KiB
Markdown
Raw Normal View History

---
title: inputThumbGenerated
description: Generated thumb
---
## Constructor: inputThumbGenerated
[Back to constructors index](index.md)
Generated thumb
### Attributes:
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
|original\_path|[string](../types/string.md) | Yes|Path to the original file|
|conversion|[string](../types/string.md) | Yes|String specifying conversion applied to the original file, should be persistent across application restart|
|width|[int](../types/int.md) | Yes|Thumb width, use 0 if unknown|
|height|[int](../types/int.md) | Yes|Thumb height, use 0 if unknown|
### Type: [InputThumb](../types/InputThumb.md)
### Example:
```
2017-07-23 16:33:46 +02:00
$inputThumbGenerated = ['_' => 'inputThumbGenerated', 'original_path' => 'string', 'conversion' => 'string', 'width' => int, 'height' => int];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
2017-07-23 16:33:46 +02:00
{"_": "inputThumbGenerated", "original_path": "string", "conversion": "string", "width": int, "height": int}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
inputThumbGenerated={_='inputThumbGenerated', original_path='string', conversion='string', width=int, height=int}
```