Layer 220
UploadGetWebFile
Returns content of a web file, by proxying the request through telegram, see the webfile docs for more info.
method
Users
Parameters
| Name | Type | Description |
|---|---|---|
| Location | InputWebFileLocation | The file to download |
| Offset | int | Number of bytes to be skipped |
| Limit | int | Number of bytes to be returned |
Returns
upload.WebFilePossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | DOCUMENT_INVALID | The specified document is invalid. |
| 400 | LOCATION_INVALID | The provided location is invalid. |
Gogram Example
// UploadGetWebFile - positional arguments result, err := client.UploadGetWebFile(&tg.InputWebFileLocation{}, 0, 0) if err != nil { // handle error } // result is *tg.UploadWebFile