1
0
mirror of https://github.com/fabianonline/telegram_backup.git synced 2024-11-22 16:56:16 +00:00

Update DownloadManager.kt

This commit is contained in:
Leijurv 2018-02-14 11:30:13 -08:00 committed by GitHub
parent 46be107dcb
commit ebe9a0219c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -395,8 +395,8 @@ class DownloadManager(internal var client: TelegramClient?, p: DownloadProgressI
}
@Throws(RpcErrorException::class, IOException::class, TimeoutException::class)
fun downloadFile(targetFilename: String, size: Int, dcId: Int, id: Long, accessHash: Long) {
val loc = TLInputDocumentFileLocation(id, accessHash)
fun downloadFile(targetFilename: String, size: Int, dcId: Int, id: Long, accessHash: Long, version: Int) {
val loc = TLInputDocumentFileLocation(id, accessHash, version)
downloadFileFromDc(targetFilename, loc, dcId, size)
}