InputPhotoFileLocation
- class pyrogram.raw.types.InputPhotoFileLocation
Use this object to download a photo with upload.getFile method
Constructor of
InputFileLocation.- Details:
Layer:
223ID:
40181FFE
- Parameters:
id (
int64-bit) – Photo ID, obtained from the photo objectaccess_hash (
int64-bit) – Photo’s access hash, obtained from the photo objectfile_reference (
bytes) – File referencethumb_size (
str) – The PhotoSize to download: must be set to the type field of the desired PhotoSize object of the photo
TL Schema
inputPhotoFileLocation#40181ffe
id:long
access_hash:long
file_reference:bytes
thumb_size:string
= InputFileLocation
Parameter Tree
InputPhotoFileLocation
├── id →
long├── access_hash →
long├── file_reference →
bytes└── thumb_size →
stringExample
InputPhotoFileLocation(
id=0,
access_hash=0,
file_reference=b"data",
thumb_size="text",
)