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
photoPhotoOptionalPhoto
ttl_secondsintOptionalTime to live in seconds of self-destructing photo

Type: MessageMedia

Example:

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