mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-03 10:08:28 +01:00
1.4 KiB
1.4 KiB
title | description | nav_exclude | image |
---|---|---|---|
photo | Photo | true | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: photo
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 |
file_reference | bytes | Yes | file reference |
date | int | Yes | Date of upload |
sizes | Array of PhotoSize | Yes | Available sizes for download |
video_sizes | Array of VideoSize | Optional | For animated profiles, the MPEG4 videos |
dc_id | int | Yes | DC 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];