Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grm/src/client/mod.ts>downloads.DirectDownloadIter

MTProto API Client for Deno 🦕
Go to Latest
class downloads.DirectDownloadIter
extends RequestIter
import { downloads } from "https://deno.land/x/grm@0.5.1/src/client/mod.ts";
const { DirectDownloadIter } = downloads;

Properties

private
optional
_sender: MTProtoSender
private
_timedOut: boolean
protected
optional
_chunkSize: number
protected
optional
_lastPart: Buffer
protected
optional
_stride: number
protected
buffer: Buffer[] | undefined
protected
optional
request: Api.upload.GetFile

Methods

_loadNextChunk(): Promise<boolean | undefined>
_request(): Promise<Buffer>
[Symbol.asyncIterator](): AsyncIterator<Buffer, any, undefined>