MadelineProtoDocs/old_docs/API_docs_v18/constructors/photo.md
2020-06-16 17:50:25 +02:00

990 B

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

Constructor: photo

Back to constructors index

Photo

Attributes:

Name Type Required Description
has_stickers Bool Optional Whether the photo has mask stickers attached to it
id long Yes ID
access_hash long Yes Access hash
date int Yes Date of upload
sizes Array of PhotoSize Yes Available sizes for download

Type: Photo

Example:

$photo = ['_' => 'photo', 'has_stickers' => Bool, 'id' => long, 'access_hash' => long, 'date' => int, 'sizes' => [PhotoSize, PhotoSize]];

Or, if you're into Lua:

photo={_='photo', has_stickers=Bool, id=long, access_hash=long, date=int, sizes={PhotoSize}}