MadelineProtoDocs/docs/API_docs/constructors/photoCachedSize.md

1.0 KiB

title description image
photoCachedSize Description of an image and its content. https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: photoCachedSize

Back to constructors index

Description of an image and its content.

Attributes:

Name Type Required Description
type string Yes Thumbnail type
location FileLocation Yes File location
w int Yes Image width
h int Yes Image height
bytes bytes Yes Binary data, file content

Type: PhotoSize

Example:

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

Or, if you're into Lua:

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