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

x/grammy/mod.ts>Api#getUserProfilePhotos

The Telegram Bot Framework.
Very Popular
Latest
method Api.prototype.getUserProfilePhotos
import { Api } from "https://deno.land/x/grammy@v1.30.1/mod.ts";

Use this method to get a list of profile pictures for a user. Returns a UserProfilePhotos object.

Parameters

user_id: number

Unique identifier of the target user

optional
other: Other<R, "getUserProfilePhotos", "user_id">

Optional remaining parameters, confer the official reference below

optional
signal: AbortSignal

Optional AbortSignal to cancel the request

Official reference: https://core.telegram.org/bots/api#getuserprofilephotos