class

Tourmaline::InputStoryContentVideo

Inherits JSON::Serializable < Reference < Object

Describes a video to post as a story.

Constructors

new(type : String, video : String, duration : Float64 | Nil = nil, cover_frame_timestamp : Float64 | Nil = nil, is_animation : Bool | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

cover_frame_timestamp

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

Source
cover_frame_timestamp=(cover_frame_timestamp : Float64 | Nil)

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

Source
duration

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

Source
duration=(duration : Float64 | Nil)

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

Source
is_animation=(is_animation : Bool | Nil)

Optional. Pass True if the video has no sound

Source
is_animation?

Optional. Pass True if the video has no sound

Source
type

Type of the content, must be video

Source
type=(type : String)

Type of the content, must be video

Source
video

The 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: https://core.telegram.org/bots/api#sending-files

Source
video=(video : String)

The 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: https://core.telegram.org/bots/api#sending-files

Source