inputPhotoFileLocation

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

Constructor schema is available as of layer 98. Switch ยป

Parameters

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

Type

InputFileLocation

Related pages

photo

Photo

File references

How to handle file references.

PhotoSize

Location of a certain size of a picture

upload.getFile

Returns content of a whole file or its part.