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

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

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

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>