MadelineProtoDocs/old_docs/API_docs_v33/constructors/photo.md
2019-12-27 17:48:04 +01:00

821 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
id long Yes ID
access_hash long Yes Access hash
date int Yes Date of upload
sizes Array of PhotoSize Yes Sizes

Type: Photo

Example:

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

Or, if you're into Lua:

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