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

x/grm/src/client/downloads.ts>downloadMedia

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

Parameters

messageOrMedia: Api.Message | Api.TypeMessageMedia
optional
outputFile: OutFile
optional
thumb: number | Api.TypePhotoSize
optional
progressCallback: ProgressCallback

Returns

Promise<Buffer | string | undefined> | Buffer