Raw.photos.UploadProfilePhoto

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 undefined

    If 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 undefined

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

  • file : Raw.TypeInputFile or undefined

    Profile photo

  • video : Raw.TypeInputFile or undefined

    Animated profile picture video

  • videoStartTs : number or undefined

    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 videoEmojiMarkup is set.

  • videoEmojiMarkup : Raw.TypeVideoSize or undefined

    Animated sticker profile picture, must contain either a videosizeemojimarkup or a videosizestickermarkup constructor.

Results

Raw.photos.TypePhoto

Bots can use