﻿# InputFileLocation

Defines the location of a file for download.

```tl
inputFileLocation#dfdaabe1 volume_id:long local_id:int secret:long file_reference:bytes = InputFileLocation;
inputEncryptedFileLocation#f5235d55 id:long access_hash:long = InputFileLocation;
inputDocumentFileLocation#bad07584 id:long access_hash:long file_reference:bytes thumb_size:string = InputFileLocation;
inputSecureFileLocation#cbc7ee28 id:long access_hash:long = InputFileLocation;
inputTakeoutFileLocation#29be5899 = InputFileLocation;
inputPhotoFileLocation#40181ffe id:long access_hash:long file_reference:bytes thumb_size:string = InputFileLocation;
inputPhotoLegacyFileLocation#d83466f3 id:long access_hash:long file_reference:bytes volume_id:long local_id:int secret:long = InputFileLocation;
inputPeerPhotoFileLocation#37257e99 flags:# big:flags.0?true peer:InputPeer photo_id:long = InputFileLocation;
inputStickerSetThumb#9d84f3db stickerset:InputStickerSet thumb_version:int = InputFileLocation;
inputGroupCallStream#598a92a flags:# call:InputGroupCall time_ms:long scale:int video_channel:flags.0?int video_quality:flags.0?int = InputFileLocation;
```

### Constructors

| Constructor | Description |
| --- | --- |
| [inputFileLocation](/constructor/inputFileLocation.md) | DEPRECATED location of a photo |
| [inputEncryptedFileLocation](/constructor/inputEncryptedFileLocation.md) | Location of encrypted secret chat file. |
| [inputDocumentFileLocation](/constructor/inputDocumentFileLocation.md) | Document location (video, voice, audio, basically every type except photo) |
| [inputSecureFileLocation](/constructor/inputSecureFileLocation.md) | Location of encrypted telegram [passport](/passport.md) file. |
| [inputTakeoutFileLocation](/constructor/inputTakeoutFileLocation.md) | Used to download a JSON file that will contain all personal data related to features that do not have a specialized [takeout method](/api/takeout.md) yet, see [here »](/api/takeout.md) for more info on the takeout API. |
| [inputPhotoFileLocation](/constructor/inputPhotoFileLocation.md) | Use this object to download a photo with [upload.getFile](/method/upload.getFile.md) method |
| [inputPhotoLegacyFileLocation](/constructor/inputPhotoLegacyFileLocation.md) | DEPRECATED legacy photo file location |
| [inputPeerPhotoFileLocation](/constructor/inputPeerPhotoFileLocation.md) | Location of profile photo of channel/group/supergroup/user |
| [inputStickerSetThumb](/constructor/inputStickerSetThumb.md) | Location of stickerset thumbnail (see [files](/api/files.md)) |
| [inputGroupCallStream](/constructor/inputGroupCallStream.md) | Identifies a media chunk of an RTMP-mode video chat, livestream or live story, see [playing an RTMP livestream »](/api/group-calls.md#downloading-media-chunks)