mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2025-01-22 05:41:46 +01:00
32 lines
946 B
Markdown
32 lines
946 B
Markdown
|
---
|
||
|
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'];
|
||
|
```
|