Layer 220
Photo
Photo
constructor
photo#fb197a65 flags:# has_stickers:flags.0?true id:long access_hash:long file_reference:bytes date:int sizes:Vector<PhotoSize> video_sizes:flags.1?Vector<VideoSize> dc_id:int = Photo;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| HasStickers | flags.0?true | Whether the photo has mask stickers attached to it |
| Id | long | ID |
| AccessHash | long | Access hash |
| FileReference | bytes | file reference |
| Date | int | Date of upload |
| Sizes | Vector<PhotoSize> | Available sizes for download |
| VideoSizes | Vector<VideoSize> | For animated profiles, the MPEG 4 videos |
| DcId | int | DC ID to use for download |
Returns
PhotoGogram Example
// Creating Photo constructor obj := &tg.Photo{ Id: int64(0), AccessHash: int64(0), FileReference: []byte{}, Date: 0, Sizes: []tg.PhotoSize{&tg.PhotoSize{}}, DcId: 0, // Optional fields: // HasStickers: true, // VideoSizes: []tg.VideoSize{&tg.VideoSize{}}, }