Skip to main content
Module

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

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

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