Skip to main content

inputPhotoFileLocation

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

type tg.InputPhotoFileLocation struct { /* ... */ }

Implements InputFileLocation.

Fields

NameTypeRequiredDescription
IDint64yesPhoto ID, obtained from the photo object
AccessHashint64yesPhoto's access hash, obtained from the photo object
FileReference[]byteyesFile reference
ThumbSizestringyesThe PhotoSize to download: must be set to the type field of the desired PhotoSize object of the photo

References