1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 13:26:55 +01:00
MadelineProto/docs/TD_docs/constructors/photoSize.md
Daniil Gentili 9d77dc0919 AMP fixes
2017-08-20 09:05:56 +00:00

996 B

title description
photoSize Photo description

Constructor: photoSize

Back to constructors index

Photo description

Attributes:

Name Type Required Description
type string Yes Thumbnail type (see https: core.telegram.org/constructor/photoSize)
photo file Yes Information about photo file
width int Yes Photo width
height int Yes Photo height

Type: PhotoSize

Example:

$photoSize = ['_' => 'photoSize', 'type' => 'string', 'photo' => file, 'width' => int, 'height' => int];

PWRTelegram json-encoded version:

{"_": "photoSize", "type": "string", "photo": file, "width": int, "height": int}

Or, if you're into Lua:

photoSize={_='photoSize', type='string', photo=file, width=int, height=int}