Link Search Menu Expand Document

Constructor: messageMediaPhoto

Back to constructors index

Attached photo.

Attributes:

NameTypeRequiredDescription
spoilerBoolOptionalWhether this media should be hidden behind a spoiler warning
live_photoBoolOptional
photoPhotoOptionalPhoto
ttl_secondsintOptionalTime to live in seconds of self-destructing photo
videoDocumentOptional

Type: MessageMedia

Example:

$messageMediaPhoto = ['_' => 'messageMediaPhoto', 'spoiler' => Bool, 'live_photo' => Bool, 'photo' => Photo, 'ttl_seconds' => int, 'video' => Document];