inputPhotoFileLocation
Use this object to download a photo with upload.getFile method
type tg.InputPhotoFileLocation struct { /* ... */ }
Implements InputFileLocation.
Fields
| Name | Type | Required | Description |
|---|---|---|---|
ID | int64 | yes | Photo ID, obtained from the photo object |
AccessHash | int64 | yes | Photo's access hash, obtained from the photo object |
FileReference | []byte | yes | File reference |
ThumbSize | string | yes | The PhotoSize to download: must be set to the type field of the desired PhotoSize object of the photo |
References
- Official documentation
- Generated Go reference
- TL definition:
inputPhotoFileLocation#40181ffe