Layer 220
constructor
inputMediaPhoto#b3ba0635 flags:# spoiler:flags.1?true id:InputPhoto ttl_seconds:flags.0?int = InputMedia;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Spoiler flags.1?true Whether this media should be hidden behind a spoiler warning
Id InputPhoto Photo to be forwarded
TtlSeconds flags.0?int Time to live in seconds of self-destructing photo

Returns

InputMedia

Gogram Example

// Creating InputMediaPhoto constructor
obj := &tg.InputMediaPhoto{
    Id: &tg.InputPhoto{ID: int64(0), AccessHash: int64(0), FileReference: []byte{}},

    // Optional fields:
    // Spoiler: true,
    // TtlSeconds: 0,
}