InputPhotoFileLocation

class pyrogram.raw.types.InputPhotoFileLocation

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

Constructor of InputFileLocation.

Details:
  • Layer: 223

  • ID: 40181FFE

Parameters:
  • id (int 64-bit) – Photo ID, obtained from the photo object

  • access_hash (int 64-bit) – Photo’s access hash, obtained from the photo object

  • file_reference (bytes) – File reference

  • thumb_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
├── idlong
├── access_hashlong
├── file_referencebytes
└── thumb_sizestring

Example

InputPhotoFileLocation(
    id=0,
    access_hash=0,
    file_reference=b"data",
    thumb_size="text",
)