Skip to main content

inputMediaPhoto

Forwarded photo

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

Implements InputMedia.

Fields​

NameTypeRequiredDescription
Spoilerbool—Whether this media should be hidden behind a spoiler warning
LivePhotobool—LivePhoto field of InputMediaPhoto.
IDInputPhotoClassyesPhoto to be forwarded
TTLSecondsint—Time to live in seconds of self-destructing photo
VideoInputDocumentClass—Video field of InputMediaPhoto.

References​