Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
method tgClient.AbstractTelegramClient.prototype.downloadMedia
import { tgClient } from "https://deno.land/x/grm@0.5.4/mod.ts";
const { AbstractTelegramClient } = tgClient;

Parameters

messageOrMedia: any | Api.TypeMessageMedia
optional
downloadParams: types.DownloadMediaInterface

Returns

Promise<Buffer | string | undefined> | Buffer