Interface StoryVideo

Describes a video file sent in a story.

interface StoryVideo {
    @type: "storyVideo";
    cover_frame_timestamp: number;
    duration: number;
    has_stickers?: boolean;
    height: number;
    is_animation?: boolean;
    minithumbnail: Minithumbnail;
    preload_prefix_size: number;
    thumbnail: Thumbnail;
    video: File;
    width: number;
}

Properties

@type: "storyVideo"
cover_frame_timestamp: number

Timestamp of the frame used as video thumbnail.

duration: number

Duration of the video, in seconds.

has_stickers?: boolean

True, if stickers were added to the video. The list of corresponding sticker sets can be received using getAttachedStickerSets.

height: number

Video height.

is_animation?: boolean

True, if the video has no sound.

minithumbnail: Minithumbnail

Video minithumbnail; may be null.

preload_prefix_size: number

Size of file prefix, which is expected to be preloaded, in bytes.

thumbnail: Thumbnail

Video thumbnail in JPEG or MPEG4 format; may be null.

video: File

File containing the video.

width: number

Video width.