MadelineProtoDocs/docs/API_docs/constructors/photoCachedSize.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

1.1 KiB

title description image
photoCachedSize Photo cached size https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: photoCachedSize

Back to constructors index

Photo cached size

Attributes:

Name Type Required Description
type string Yes Type
location FileLocation Yes Location
w int Yes Width
h int Yes Height
bytes bytes Yes Bytes

Type: PhotoSize

Example:

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

PWRTelegram json-encoded version:

{"_": "photoCachedSize", "type": "string", "location": FileLocation, "w": int, "h": int, "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}}

Or, if you're into Lua:

photoCachedSize={_='photoCachedSize', type='string', location=FileLocation, w=int, h=int, bytes='bytes'}