Link Search Menu Expand Document

Constructor: inputMediaUploadedPhoto

Back to constructors index

Photo

Attributes:

NameTypeRequiredDescription
spoilerBoolOptionalWhether this media should be hidden behind a spoiler warning
fileFile path or InputFileYesThe uploaded file
stickersArray of MessageMedia, Message, Update or InputDocumentOptionalAttached mask stickers
ttl_secondsintOptionalTime to live in seconds of self-destructing photo

Type: InputMedia

Example:

$inputMediaUploadedPhoto = ['_' => 'inputMediaUploadedPhoto', 'spoiler' => Bool, 'file' => InputFile, 'stickers' => [InputDocument, InputDocument], 'ttl_seconds' => int];