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

Parameters

Name Type Description
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(5678901234567890), AccessHash: int64(1234567890123456), FileReference: []byte{0x01, 0x02}},

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