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

x/mtkruto/tl/3_functions.ts>photos_updateProfilePhoto_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class photos_updateProfilePhoto_
extends Function_<enums.photos.Photo>
import { photos_updateProfilePhoto_ } from "https://deno.land/x/mtkruto@0.1.190/tl/3_functions.ts";

Installs a previously uploaded photo as a profile photo.

Constructors

new
photos_updateProfilePhoto_(params: { fallback?: true; bot?: enums.InputUser; id: enums.InputPhoto; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
bot: enums.InputUser

Can contain info of a bot we own, to change the profile photo of that bot, instead of the current user.

optional
fallback: true

If set, the chosen profile photo will be shown to users that can't display your main profile photo due to your privacy settings.

id: enums.InputPhoto

Input photo

Static Properties

__F: (params: { fallback?: true; bot?: enums.InputUser; id: enums.InputPhoto; }) => enums.photos.Photo
readonly
[name]: string
readonly
[paramDesc]: ParamDesc