Layer 228
PhotoObj
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 |
|---|---|---|
| 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 | flags .1? Vector<VideoSize> | For animated profiles, the MPEG 4 videos |
| DcId | int | DC ID to use for download |
Returns
PhotoGogram Example
// Creating PhotoObj constructor obj := &tg.PhotoObj{ HasStickers: nil, Id: int64(1234567890), AccessHash: int64(5678901234567890), FileReference: []byte{0x01, 0x02, 0x03}, Date: int(time.Now().Unix()), Sizes: []tg.PhotoSize{&tg.PhotoCachedSize{}}, // ... more required fields }