Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

MTProto API Client for Deno 🦕
Go to Latest
function downloads._downloadDocument
import { downloads } from "https://deno.land/x/grm@v0.3.1/src/client/mod.ts";
const { _downloadDocument } = downloads;

Parameters

doc: Api.MessageMediaDocument | Api.TypeDocument
outputFile: OutFile | undefined
date: number
optional
thumb: number | string | Api.TypePhotoSize
optional
progressCallback: ProgressCallback
optional
msgData: [Api.TypeEntityLike, number]

Returns

Promise<Buffer | string | undefined>