Td: how get photoCached

Created on 15 Apr 2018  路  3Comments  路  Source: tdlib/td

Hello friends
How can I get photoCached?
I want to have a preview of the pictures before downloading.

question

Most helpful comment

Each photo has a lot of sizes. You need to call downloadFile for the smallest photo size if you want to guarantee that it is available. In most cases for photos this request succeeds immediately without any network request and you receive information about downloaded file through updateFile.

All 3 comments

Each photo has a lot of sizes. You need to call downloadFile for the smallest photo size if you want to guarantee that it is available. In most cases for photos this request succeeds immediately without any network request and you receive information about downloaded file through updateFile.

I agree with Leo. This is a library task and it is wrapped in a common file uploading mechanism.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nikolayozhogov picture nikolayozhogov  路  5Comments

liaoyu1992 picture liaoyu1992  路  4Comments

hatami57 picture hatami57  路  4Comments

isopen picture isopen  路  5Comments

FJarvan picture FJarvan  路  3Comments