Raw.photos.UploadProfilePhoto
Updates current user profile photo.
photos.uploadProfilePhoto#388a3b5 flags:# fallback:flags.3?true bot:flags.5?InputUser file:flags.0?InputFile video:flags.1?InputFile video_start_ts:flags.2?double video_emoji_markup:flags.4?VideoSize = photos.Photo;
export namespace Raw {
export namespace photos {
export class UploadProfilePhoto {
constructor(params: {
fallback?: boolean;
bot?: Raw.TypeInputUser;
file?: Raw.TypeInputFile;
video?: Raw.TypeInputFile;
videoStartTs?: number;
videoEmojiMarkup?: Raw.TypeVideoSize;
}) {}
}
}
}
This is a function constructor, you can use it as method when call invoke
Layer: 185
Constructor ID: 0x388a3b5
Property
fallback
: boolean or undefinedIf set, the chosen profile photo will be shown to users that can’t display your main profile photo due to your privacy settings.
bot
: Raw.TypeInputUser or undefinedCan contain info of a bot we own, to change the profile photo of that bot, instead of the current user.
file
: Raw.TypeInputFile or undefinedProfile photo
video
: Raw.TypeInputFile or undefinedAnimated profile picture video
videoStartTs
: number or undefinedFloating 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 videoEmojiMarkup is set.
videoEmojiMarkup
: Raw.TypeVideoSize or undefinedAnimated sticker profile picture, must contain either a videosizeemojimarkup or a videosizestickermarkup constructor.