Skip to main content
Module

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

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

Parameters

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

Returns

Promise<Buffer | string | undefined> | Buffer