Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/grm/src/client/mod.ts>downloads._downloadPhoto

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

Parameters

photo: Api.MessageMediaPhoto | Api.Photo
optional
file: OutFile
optional
date: number
optional
thumb: number | string | Api.TypePhotoSize
optional
progressCallback: progressCallback

Returns

Promise<Buffer | string | undefined> | Buffer