You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone, I wanted to use iterDownload to stream download files. but when I wanted to use iterDownload, I initially copied the code give in the docs but:
the code had syntax errors
the code does not explain anything. for example what if I want to use a video instead of a photo? what does size mean? it's not defined, where do I get it from? how do I know what to set the offset as? what about the limit?
btw this is what I'm referring to:
for await (const chunk of client.iterDownload({
file: new Api.InputPhotoFileLocation({
id: photo.id,
accessHash: photo.accessHash,
fileReference: photo.fileReference,
thumbSize: size.type
}),
offset: start,
limit: end,
requestSize:2048*1024
)){
console.log("Downloaded chunk of size",chunk.length);
};
The text was updated successfully, but these errors were encountered:
Hello everyone, I wanted to use iterDownload to stream download files. but when I wanted to use iterDownload, I initially copied the code give in the docs but:
size
mean? it's not defined, where do I get it from? how do I know what to set the offset as? what about the limit?btw this is what I'm referring to:
The text was updated successfully, but these errors were encountered: