Skip to content

GramIO API Reference / gramio/dist / TelegramInputStoryContentVideo

Interface: TelegramInputStoryContentVideo

Defined in: @gramio/types/out/objects.d.ts:6047

Describes a video to post as a story.

Documentation

Properties

PropertyTypeDescriptionDefined in
cover_frame_timestamp?numberOptional. Timestamp in seconds of the frame that will be used as the static cover for the story. Defaults to 0.0.@gramio/types/out/objects.d.ts:6063
duration?numberOptional. Precise duration of the video in seconds; 0-60@gramio/types/out/objects.d.ts:6059
is_animation?booleanOptional. Pass True if the video has no sound@gramio/types/out/objects.d.ts:6067
type"video"Type of the content, must be video@gramio/types/out/objects.d.ts:6051
videostring | BlobThe video to post as a story. The video must be of the size 720x1280, streamable, encoded with H.265 codec, with key frames added each second in the MPEG4 format, and must not exceed 30 MB. The video can't be reused and can only be uploaded as a new file, so you can pass “attach://<file_attach_name>” if the video was uploaded using multipart/form-data under <file_attach_name>. More information on Sending Files »@gramio/types/out/objects.d.ts:6055