MadelineProtoDocs/old_docs/API_docs_v102/constructors/photo.md
2019-06-24 15:45:02 +02:00

1.1 KiB

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 Has stickers?
id long Yes ID
access_hash long Yes Access hash
file_reference bytes Yes File reference
date int Yes Date
sizes Array of PhotoSize Yes Sizes
dc_id int Yes DC ID

Type: Photo

Example:

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

Or, if you're into Lua:

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