Layer 224
method Users
upload.getCdnFile#395f69da file_token:bytes offset:long limit:int = upload.CdnFile;

Parameters

Name Type Description
FileToken bytes File token
Offset long Offset of chunk to download
Limit int Length of chunk to download

Returns

upload.CdnFile

Gogram Example

// UploadGetCdnFile - positional arguments
result, err := client.UploadGetCdnFile([]byte{0x01, 0x02, 0x03}, int64(1234567890), 42)
if err != nil {
    // handle error
}
// result is *tg.UploadCdnFile

Possible Errors

Code Type Description
400 FILE_TOKEN_INVALID The master DC did not accept the file_token (e. g., the token has expired). Continue downloading the file from the master DC using upload. get File.
404 METHOD_INVALID The specified method is invalid.