Layer 227
InputMediaPhoto
Forwarded photo
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 |
| LivePhoto | flags .2? true | Whether this is a live photo, i. e. a still photo paired with the short video clip captured alongside it |
| Id | InputPhoto | Photo to be forwarded |
| TtlSeconds | flags .0? int | Time to live of self-destructing photo, can be 0 to disable self-destruction, 0 x 7 FFFFFFF to self-destruct the document immediately after it's played; otherwise self-destructs ttl_seconds after it's played. |
| Video | flags .2? InputDocument | The short video clip of the live photo |
Returns
InputMediaGogram Example
// Creating InputMediaPhoto constructor obj := &tg.InputMediaPhoto{ Spoiler: nil, LivePhoto: nil, Id: &tg.InputPhoto{ID: int64(5678901234567890), AccessHash: int64(1234567890123456), FileReference: []byte{0x01, 0x02}}, TtlSeconds: nil, Video: nil, }