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

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

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

Parameters

client: AbstractTelegramClient
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