Skip to main content

messageMediaPhoto

Attached photo.

type tg.MessageMediaPhoto struct { /* ... */ }

Implements MessageMedia.

Fields​

NameTypeRequiredDescription
Spoilerbool—Whether this media should be hidden behind a spoiler warning
LivePhotobool—LivePhoto field of MessageMediaPhoto.
PhotoPhotoClass—Photo
TTLSecondsint—Time to live in seconds of self-destructing photo
VideoDocumentClass—Video field of MessageMediaPhoto.

References​