InputStoryContentVideo

class telegram.InputStoryContentVideo(video, duration=None, cover_frame_timestamp=None, is_animation=None, *, api_kwargs=None)[source]

Bases: telegram.InputStoryContent

Describes a video to post as a story.

Added in version 22.1.

Parameters:
type[source]

Type of the content, must be VIDEO.

Type:

str

video[source]

The video to post as a story. The video must be of the size '720' x '1080', streamable, encoded with H.265 codec, with key frames added each second in the MPEG4 format, and must not exceed '30000000' MB.

Type:

telegram.InputFile

duration[source]

Optional. Precise duration of the video in seconds; 0-'60'

Type:

datetime.timedelta

cover_frame_timestamp[source]

Optional. Timestamp in seconds of the frame that will be used as the static cover for the story. Defaults to 0.0.

Type:

datetime.timedelta

is_animation[source]

Optional. Pass True if the video has no sound

Type:

bool