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_uploadProfilePhoto_

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

Updates current user profile photo.

Constructors

new
photos_uploadProfilePhoto_(params?: { fallback?: true; bot?: enums.InputUser; file?: enums.InputFile; video?: enums.InputFile; video_start_ts?: number; video_emoji_markup?: enums.VideoSize; })

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.

optional
file: enums.InputFile

Profile photo

optional
video: enums.InputFile
optional
video_emoji_markup: enums.VideoSize

Animated sticker profile picture, must contain either a videoSizeEmojiMarkup or a videoSizeStickerMarkup constructor.

optional
video_start_ts: number

Floating point UNIX timestamp in seconds, indicating the frame of the video/sticker that should be used as static preview; can only be used if video or video_emoji_markup is set.

Static Properties

__F: (params?: { fallback?: true; bot?: enums.InputUser; file?: enums.InputFile; video?: enums.InputFile; video_start_ts?: number; video_emoji_markup?: enums.VideoSize; }) => enums.photos.Photo
readonly
[name]: string
readonly
[paramDesc]: ParamDesc