InputPaidMediaVideo class
The paid media to send is a video.
- Implemented types
Constructors
- InputPaidMediaVideo({required InputFile media, InputFile? thumbnail, int? width, int? height, int? duration, bool? supportsStreaming})
-
Constructs a InputPaidMediaVideo object.
const
Properties
- duration → int?
-
Optional. Video duration in seconds.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int?
-
Optional. Video height.
final
- media → InputFile
-
File to send.
Pass a file_id to send a file that exists on the Telegram servers (recommended),
pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>”
to upload a new one using multipart/form-data under <file_attach_name> name.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supportsStreaming → bool?
-
Optional. Pass True if the uploaded video is suitable for streaming.
final
- thumbnail → InputFile?
-
Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side.
final
- type → InputPaidMediaType
-
Type of the media.
no setteroverride
- width → int?
-
Optional. Video width.
final
Methods
-
getValue(
[String? field, String? thumb]) → Map< String, dynamic> -
Converts a InputPaidMediaVideo object to JSON.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts a InputPaidMediaVideo object to JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited