Link Search Menu Expand Document

Constructor: photo

Back to constructors index

Photo

Attributes:

NameTypeRequiredDescription
has_stickersBoolOptionalWhether the photo has mask stickers attached to it
idlongYesID
access_hashlongYesAccess hash
file_referencebytesYesfile reference
dateintYesDate of upload
sizesArray of PhotoSizeYesAvailable sizes for download
video_sizesArray of VideoSizeOptionalFor animated profiles, the MPEG4 videos
dc_idintYesDC ID to use for download

Type: Photo

Example:

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