teleproto - v1.229.0
    Preparing search index...

    Interface PhotosUploadContactProfilePhotoParams

    interface PhotosUploadContactProfilePhotoParams {
        file?: TypeInputFileIn;
        save?: boolean;
        suggest?: boolean;
        userId: EntityLike;
        video?: TypeInputFileIn;
        videoEmojiMarkup?: TypeVideoSizeIn;
        videoStartTs?: number;
    }
    Index

    Profile photo

    save?: boolean

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

    suggest?: boolean

    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).

    userId: EntityLike

    The contact

    Animated profile picture video

    videoEmojiMarkup?: TypeVideoSizeIn

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

    videoStartTs?: 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.