Link Search Menu Expand Document

Constructor: inputMediaPhoto

Back to constructors index

Forwarded photo

Attributes:

NameTypeRequiredDescription
spoilerBoolOptionalWhether this media should be hidden behind a spoiler warning
idMessageMedia, Message, Update or InputPhotoOptionalPhoto to be forwarded
ttl_secondsintOptionalTime to live in seconds of self-destructing photo

Type: InputMedia

Example:

$inputMediaPhoto = ['_' => 'inputMediaPhoto', 'spoiler' => Bool, 'id' => InputPhoto, 'ttl_seconds' => int];