32 lines
946 B
Markdown
Raw Normal View History

2024-05-01 14:53:46 +02:00
---
title: "inputPhoto"
description: "Defines a photo for further interaction."
nav_exclude: true
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: inputPhoto
[Back to constructors index](/API_docs/constructors/index.html)
Defines a photo for further interaction.
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|id|[long](/API_docs/types/long.html) | Yes|Photo identifier|
|access\_hash|[long](/API_docs/types/long.html) | Yes|**access\_hash** value from the [photo](../constructors/photo.html) constructor|
|file\_reference|[bytes](/API_docs/types/bytes.html) | Yes|[File reference](https://core.telegram.org/api/file_reference)|
### Type: [InputPhoto](/API_docs/types/InputPhoto.html)
### Example:
```
$inputPhoto = ['_' => 'inputPhoto', 'id' => long, 'access_hash' => long, 'file_reference' => 'bytes'];
```