Class TdApi.InputStoryContentVideo
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.InputStoryContent
dev.voroby.springframework.telegram.client.TdApi.InputStoryContentVideo
- Enclosing class:
- TdApi
A video story.
-
Field Summary
Modifier and TypeFieldDescriptionint[]
File identifiers of the stickers added to the video, if applicable.static final int
Identifier uniquely determining type of the object.double
Timestamp of the frame, which will be used as video thumbnail.double
Precise duration of the video, in seconds; 0-60.boolean
True, if the video has no sound.Video to be sent. -
Constructor Summary
ConstructorDescriptionA video story.InputStoryContentVideo
(TdApi.InputFile video, int[] addedStickerFileIds, double duration, double coverFrameTimestamp, boolean isAnimation) A video story. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Object
toString
-
Field Details
-
video
Video to be sent. The video size must be 720x1280. The video must be streamable and stored in MPEG4 format, after encoding with x265 codec and key frames added each second. -
addedStickerFileIds
public int[] addedStickerFileIdsFile identifiers of the stickers added to the video, if applicable. -
duration
public double durationPrecise duration of the video, in seconds; 0-60. -
coverFrameTimestamp
public double coverFrameTimestampTimestamp of the frame, which will be used as video thumbnail. -
isAnimation
public boolean isAnimationTrue, if the video has no sound. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
InputStoryContentVideo
public InputStoryContentVideo()A video story. -
InputStoryContentVideo
public InputStoryContentVideo(TdApi.InputFile video, int[] addedStickerFileIds, double duration, double coverFrameTimestamp, boolean isAnimation) A video story.- Parameters:
video
- Video to be sent. The video size must be 720x1280. The video must be streamable and stored in MPEG4 format, after encoding with x265 codec and key frames added each second.addedStickerFileIds
- File identifiers of the stickers added to the video, if applicable.duration
- Precise duration of the video, in seconds; 0-60.coverFrameTimestamp
- Timestamp of the frame, which will be used as video thumbnail.isAnimation
- True, if the video has no sound.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-