InputPhotoFileLocation

class pyrogram.raw.types.InputPhotoFileLocation

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

Constructor type of InputFileLocation.

Details
  • Layer: 126

  • ID: 0x40181ffe

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.