MadelineProtoDocs/docs/API_docs/constructors/photoCachedSize.md
2018-04-19 17:56:40 +00:00

1.1 KiB

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

Constructor: photoCachedSize

Back to constructors index

Attributes:

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

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'}