tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

TdApi.getRemoteFile return size = 0 for existing file #3019

Closed cdxf closed 2 months ago

cdxf commented 2 months ago

For some file, when using getRemoteFile API , I receive FileInfo with size = 0; What is the problem?

id = 3 size = 0 expectedSize = 0 local = LocalFile { path = "" canBeDownloaded = true canBeDeleted = false isDownloadingActive = false isDownloadingCompleted = false downloadOffset = 0 downloadedPrefixSize = 0 downloadedSize = 0 } remote = RemoteFile { id = "BQACAgUAAxkDAAK5EWZGrWwD7cWp3ff5TWpt8vydYeJuAAK_LwACCFYxVn-37MaaYuJ3NQQ" uniqueId = "AgADvy8AAghWMVY" isUploadingActive = false isUploadingCompleted = true uploadedSize = 0 } }

cdxf commented 2 months ago

...

levlam commented 2 months ago

This is expected behavior:

//@size File size, in bytes; 0 if unknown