--- title: "inputMediaUploadedPhoto" description: "Photo" nav_exclude: true image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Constructor: inputMediaUploadedPhoto [Back to constructors index](/API_docs/constructors/index.html) Photo ### Attributes: | Name | Type | Required | Description | |----------|---------------|----------|-------------| |spoiler|[Bool](/API_docs/types/Bool.html) | Optional|Whether this media should be hidden behind a spoiler warning| |file|[File path or InputFile](/API_docs/types/InputFile.html) | Yes|The [uploaded file](https://core.telegram.org/api/files)| |stickers|Array of [MessageMedia, Message, Update or InputDocument](/API_docs/types/InputDocument.html) | Optional|Attached mask stickers| |ttl\_seconds|[int](/API_docs/types/int.html) | Optional|Time to live in seconds of self-destructing photo| ### Type: [InputMedia](/API_docs/types/InputMedia.html) ### Example: ``` $inputMediaUploadedPhoto = ['_' => 'inputMediaUploadedPhoto', 'spoiler' => Bool, 'file' => InputFile, 'stickers' => [InputDocument, InputDocument], 'ttl_seconds' => int]; ```