Layer 224
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 Vector<VideoSize> For animated profiles, the MPEG 4 videos
DcId int DC ID to use for download

Returns

Photo

Gogram Example

// Creating PhotoObj constructor
obj := &tg.PhotoObj{
    Id: int64(1234567890),
    AccessHash: int64(1234567890),
    FileReference: []byte{0x01, 0x02, 0x03},
    Date: 42,
    Sizes: []tg.PhotoSize{&tg.PhotoSize{}},
    DcId: 42,

    // Optional fields:
    // HasStickers: true,
    // VideoSizes: []tg.VideoSize{&tg.VideoSize{}},
}