MadelineProtoDocs/old_docs/API_docs_v105/constructors/inputPhotoFileLocation.md

42 lines
1.5 KiB
Markdown
Raw Normal View History

2019-09-13 17:13:55 +02:00
---
title: inputPhotoFileLocation
2019-12-27 17:48:04 +01:00
description: Use this object to download a photo with [upload.getFile](../methods/upload.getFile.md) method
2019-09-13 17:13:55 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: inputPhotoFileLocation
[Back to constructors index](index.md)
2019-12-27 17:48:04 +01:00
Use this object to download a photo with [upload.getFile](../methods/upload.getFile.md) method
2019-09-13 17:13:55 +02:00
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
2019-12-27 17:48:04 +01:00
|id|[long](../types/long.md) | Yes|Photo ID, obtained from the [photo](../constructors/photo.md) object|
|access\_hash|[long](../types/long.md) | Yes|Photo's access hash, obtained from the [photo](../constructors/photo.md) object|
|file\_reference|[bytes](../types/bytes.md) | Yes|[File reference](https://core.telegram.org/api/file_reference)|
|thumb\_size|[string](../types/string.md) | Yes|The [PhotoSize](../types/PhotoSize.md) to download: must be set to the `type` field of the desired PhotoSize object of the [photo](../constructors/photo.md)|
2019-09-13 17:13:55 +02:00
### Type: [InputFileLocation](../types/InputFileLocation.md)
### Example:
```php
$inputPhotoFileLocation = ['_' => 'inputPhotoFileLocation', 'id' => long, 'access_hash' => long, 'file_reference' => 'bytes', 'thumb_size' => 'string'];
```
Or, if you're into Lua:
```lua
inputPhotoFileLocation={_='inputPhotoFileLocation', id=long, access_hash=long, file_reference='bytes', thumb_size='string'}
```