Raw.InputPhotoFileLocation

Raw.InputPhotoFileLocation

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

inputPhotoFileLocation#40181ffe id:long access_hash:long file_reference:bytes thumb_size:string = InputFileLocation;
export namespace Raw {
  export class InputPhotoFileLocation {
    constructor(params: {
      id: bigint;
      accessHash: bigint;
      fileReference: Buffer;
      thumbSize: string;
    }) {}
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 185
Constructor ID: 0x40181ffe

Property

  • id : bigint

    Photo id, obtained from the photo object

  • accessHash : bigint

    Photo’s access hash, obtained from the photo object

  • fileReference : Buffer

    File reference

  • thumbSize : string

    The photosize to download: must be set to the type field of the desired photosize object of the photo