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

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

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

Parameters

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

Returns

Promise<Buffer | string | undefined>