mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-03 10:08:28 +01:00
32 lines
932 B
Markdown
32 lines
932 B
Markdown
---
|
|
title: "inputMediaPhoto"
|
|
description: "Forwarded photo"
|
|
nav_exclude: true
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
---
|
|
# Constructor: inputMediaPhoto
|
|
[Back to constructors index](/API_docs/constructors/index.html)
|
|
|
|
|
|
|
|
Forwarded photo
|
|
|
|
### Attributes:
|
|
|
|
| Name | Type | Required | Description |
|
|
|----------|---------------|----------|-------------|
|
|
|spoiler|[Bool](/API_docs/types/Bool.html) | Optional|Whether this media should be hidden behind a spoiler warning|
|
|
|id|[MessageMedia, Message, Update or InputPhoto](/API_docs/types/InputPhoto.html) | Optional|Photo to be forwarded|
|
|
|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:
|
|
|
|
```
|
|
$inputMediaPhoto = ['_' => 'inputMediaPhoto', 'spoiler' => Bool, 'id' => InputPhoto, 'ttl_seconds' => int];
|
|
```
|