Layer 220
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
Flags # Flags, see TL conditional fields
Spoiler flags.2?true Whether this media should be hidden behind a spoiler warning
File InputFile The uploaded file
Stickers Vector<InputDocument> Attached mask stickers
TtlSeconds flags.1?int Time to live in seconds of self-destructing photo

Returns

InputMedia

Gogram Example

// Creating InputMediaUploadedPhoto constructor
obj := &tg.InputMediaUploadedPhoto{
    File: &tg.InputFile{ID: int64(0), Parts: 1, Name: "file.dat"},

    // Optional fields:
    // Spoiler: true,
    // Stickers: []tg.InputDocument{&tg.InputDocument{ID: int64(0), AccessHash: int64(0), FileReference: []byte{}}},
    // TtlSeconds: 0,
}