Link Search Menu Expand Document

Constructor: inputPhotoFileLocation

Back to constructors index

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

Attributes:

NameTypeRequiredDescription
idlongYesPhoto ID, obtained from the photo object
access_hashlongYesPhoto’s access hash, obtained from the photo object
file_referencebytesYesFile reference
thumb_sizestringYesThe 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'];