InputMessageVideo class final
InputMessageVideo (inputMessageVideo) - child of InputMessageContent
A video message.
- video: Video to be sent.
- thumbnail: Video thumbnail; pass null to skip thumbnail uploading (optional).
- addedStickerFileIds: File identifiers of the stickers added to the video, if applicable.
- duration: Duration of the video, in seconds.
- width: Video width.
- height: Video height.
- supportsStreaming: True, if the video is supposed to be streamed.
- caption: Video caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters (optional).
- showCaptionAboveMedia: True, if the caption must be shown above the video; otherwise, the caption must be shown below the video; not supported in secret chats.
- selfDestructType: Video self-destruct type; pass null if none; private chats only (optional).
- hasSpoiler: True, if the video preview must be covered by a spoiler animation; not supported in secret chats.
- Inheritance
-
- Object
- TdObject
- InputMessageContent
- InputMessageVideo
Constructors
-
InputMessageVideo({required InputFile video, InputThumbnail? thumbnail, required List<
int> addedStickerFileIds, required int duration, required int width, required int height, required bool supportsStreaming, required bool showCaptionAboveMedia, MessageSelfDestructType? selfDestructType, required bool hasSpoiler}) -
InputMessageVideo (inputMessageVideo) - child of InputMessageContent
const
-
InputMessageVideo.fromJson(Map<
String, dynamic> json) -
Parse from a json
factory
Properties
-
addedStickerFileIds
→ List<
int> -
File identifiers of the stickers added to the video, if applicable
final
-
Video caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters
final
- clientId → int?
-
Client ID, from which this object was received
no setterinherited
- currentObjectId → String
-
TDLib object type for current class instance
no setteroverride
- duration → int
-
Duration of the video, in seconds
final
- extra → dynamic
-
A sign from TDLib update
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasSpoiler → bool
-
True, if the video preview must be covered by a spoiler animation; not supported in secret chats
final
- height → int
-
Video height
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selfDestructType → MessageSelfDestructType?
-
Video self-destruct type; pass null if none; private chats only
final
- showCaptionAboveMedia → bool
-
True, if the caption must be shown above the video; otherwise, the caption must be shown below the video; not supported in secret chats
final
- supportsStreaming → bool
-
True, if the video is supposed to be streamed
final
- thumbnail → InputThumbnail?
-
Video thumbnail; pass null to skip thumbnail uploading
final
- video → InputFile
-
Video to be sent
final
- width → int
-
Video width
final
Methods
-
copyWith(
{InputFile? video, InputThumbnail? thumbnail, List< int> ? addedStickerFileIds, int? duration, int? width, int? height, bool? supportsStreaming, bool? showCaptionAboveMedia, MessageSelfDestructType? selfDestructType, bool? hasSpoiler}) → InputMessageVideo -
Copy model with modified properties.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Convert model to TDLib JSON format
override
-
toString(
) → String -
Convert model to TDLib JSON format, encoded into String.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultObjectId → const String
- TDLib object type