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_uploadContactProfilePhoto_

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

Upload a custom profile picture for a contact, or suggest a new profile picture to a contact.

Constructors

new
photos_uploadContactProfilePhoto_(params: { suggest?: true; save?: true; user_id: 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
file: enums.InputFile

Profile photo

optional
save: true

If set, removes a previously set personal profile picture (does not affect suggested profile pictures, to remove them simply deleted the messageActionSuggestProfilePhoto service message with messages.deleteMessages).

optional
suggest: true

If set, will send a messageActionSuggestProfilePhoto service message to user_id, suggesting them to use the specified profile picture; otherwise, will set a personal profile picture for the user (only visible to the current user).

user_id: enums.InputUser

The contact

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: { suggest?: true; save?: true; user_id: 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