MadelineProtoDocs/old_docs/API_docs_v40/constructors/inputPhotoFileLocation.md
2020-06-16 17:50:25 +02:00

1.5 KiB

title description image
inputPhotoFileLocation Use this object to download a photo with [upload.getFile](../methods/upload.getFile.md) method https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: inputPhotoFileLocation

Back to constructors index

Use this object to download a photo with upload.getFile method

Attributes:

Name Type Required Description
id long Yes Photo ID, obtained from the photo object
access_hash long Yes Photo's access hash, obtained from the photo object
file_reference bytes Yes File reference
thumb_size string Yes The PhotoSize to download: must be set to the type field of the desired PhotoSize object of the photo

Type: InputFileLocation

Example:

$inputPhotoFileLocation = ['_' => 'inputPhotoFileLocation', 'id' => long, 'access_hash' => long, 'file_reference' => 'bytes', 'thumb_size' => 'string'];

Or, if you're into Lua:

inputPhotoFileLocation={_='inputPhotoFileLocation', id=long, access_hash=long, file_reference='bytes', thumb_size='string'}