MadelineProtoDocs/docs/API_docs/constructors/photoSize.md
Daniil Gentili e5a1324684 docufix
2018-04-04 23:19:57 +00:00

1011 B

title description image
photoSize photoSize attributes, type and example https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: photoSize

Back to constructors index

Attributes:

Name Type Required
type string Yes
location FileLocation Yes
w int Yes
h int Yes
size int Yes

Type: PhotoSize

Example:

$photoSize = ['_' => 'photoSize', 'type' => 'string', 'location' => FileLocation, 'w' => int, 'h' => int, 'size' => int];

PWRTelegram json-encoded version:

{"_": "photoSize", "type": "string", "location": FileLocation, "w": int, "h": int, "size": int}

Or, if you're into Lua:

photoSize={_='photoSize', type='string', location=FileLocation, w=int, h=int, size=int}