InputFileLocation

class pyrogram.raw.base.InputFileLocation

Defines the location of a file for download.

Constructors:

This base type has 10 constructors available.

InputDocumentFileLocation

Document location (video, voice, audio, basically every type except photo)

InputEncryptedFileLocation

Location of encrypted secret chat file.

InputFileLocation

DEPRECATED location of a photo

InputGroupCallStream

Chunk of a livestream

InputPeerPhotoFileLocation

Location of profile photo of channel/group/supergroup/user

InputPhotoFileLocation

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

InputPhotoLegacyFileLocation

DEPRECATED legacy photo file location

InputSecureFileLocation

Location of encrypted telegram passport file.

InputStickerSetThumb

Location of stickerset thumbnail (see files)

InputTakeoutFileLocation

Used to download a JSON file that will contain all personal data related to features that do not have a specialized takeout method yet, see here » for more info on the takeout API.

TL Schema

inputFileLocation#dfdaabe1
volume_id:long
local_id:int
secret:long
file_reference:bytes

= InputFileLocation

Parameter Tree

InputFileLocation
├── volume_idlong
├── local_idint
├── secretlong
└── file_referencebytes

Example

InputFileLocation(
    volume_id=0,
    local_id=0,
    secret=0,
    file_reference=b"data",
)