1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 08:16:54 +01:00
MadelineProto/docs/TD_docs/constructors/inputThumbGenerated.md
2017-07-23 16:33:46 +02:00

1.2 KiB

title description
inputThumbGenerated Generated thumb

Constructor: inputThumbGenerated

Back to constructors index

Generated thumb

Attributes:

Name Type Required Description
original_path string Yes Path to the original file
conversion string Yes String specifying conversion applied to the original file, should be persistent across application restart
width int Yes Thumb width, use 0 if unknown
height int Yes Thumb height, use 0 if unknown

Type: InputThumb

Example:

$inputThumbGenerated = ['_' => 'inputThumbGenerated', 'original_path' => 'string', 'conversion' => 'string', 'width' => int, 'height' => int];

PWRTelegram json-encoded version:

{"_": "inputThumbGenerated", "original_path": "string", "conversion": "string", "width": int, "height": int}

Or, if you're into Lua:

inputThumbGenerated={_='inputThumbGenerated', original_path='string', conversion='string', width=int, height=int}