Layer 227
MessageMediaPhoto
Attached photo.
constructor
messageMediaPhoto#695150d7 flags:# spoiler:flags.3?true photo:flags.0?Photo ttl_seconds:flags.2?int = MessageMedia;
Parameters
| Name | Type | Description |
|---|---|---|
| Spoiler | flags .3? true | Whether this media should be hidden behind a spoiler warning |
| LivePhoto | flags .4? true | Whether this is a live photo, i. e. a still photo paired with the short video clip captured alongside it |
| Photo | flags .0? Photo | Photo |
| TtlSeconds | flags .2? 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 .4? Document | The short video clip of the live photo |
Returns
MessageMediaGogram Example
// Creating MessageMediaPhoto constructor obj := &tg.MessageMediaPhoto{ Spoiler: nil, LivePhoto: nil, Photo: nil, TtlSeconds: nil, Video: nil, }