Layer 227
InputMediaUploadedPhoto
Photo
constructor
inputMediaUploadedPhoto#1e287d04 flags:# spoiler:flags.2?true file:InputFile stickers:flags.0?Vector<InputDocument> ttl_seconds:flags.1?int = InputMedia;
Parameters
| Name | Type | Description |
|---|---|---|
| Spoiler | flags .2? true | Whether this media should be hidden behind a spoiler warning |
| LivePhoto | flags .3? true | Whether this is a live photo, i. e. a still photo paired with the short video clip captured alongside it |
| File | InputFile | The uploaded file |
| Stickers | flags .0? Vector < InputDocument > | Attached mask stickers |
| TtlSeconds | flags .1? int | Time to live of self-destructing photo, can be 0 to disable self-destruction, 0 x 7 FFFFFFF to self-destruct the photo immediately after it's played; otherwise self-destructs ttl_seconds after it's played. |
| Video | flags .3? InputDocument | The short video clip of the live photo |
Returns
InputMediaGogram Example
// Creating InputMediaUploadedPhoto constructor obj := &tg.InputMediaUploadedPhoto{ Spoiler: nil, LivePhoto: nil, File: &tg.InputFile{ID: int64(7654321098765), Parts: 3, Name: "upload.dat"}, Stickers: nil, TtlSeconds: nil, Video: nil, }