class
Tourmaline::InputStoryContentVideo
- Tourmaline::InputStoryContentVideo
- Reference
- Object
Overview
Describes a video to post as a story.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(type : String, video : String, duration : Float64 | Nil = nil, cover_frame_timestamp : Float64 | Nil = nil, is_animation : Bool | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#cover_frame_timestamp : Float64 | Nil
Optional.
-
#cover_frame_timestamp=(cover_frame_timestamp : Float64 | Nil)
Optional.
-
#duration : Float64 | Nil
Optional.
-
#duration=(duration : Float64 | Nil)
Optional.
-
#is_animation=(is_animation : Bool | Nil)
Optional.
-
#is_animation? : Bool | Nil
Optional.
-
#type : String
Type of the content, must be video
-
#type=(type : String)
Type of the content, must be video
-
#video : String
The video to post as a story.
-
#video=(video : String)
The video to post as a story.
Constructor Detail
Instance Method Detail
Optional. Timestamp in seconds of the frame that will be used as the static cover for the story. Defaults to 0.0.
Optional. Timestamp in seconds of the frame that will be used as the static cover for the story. Defaults to 0.0.
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
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