InlineQueryResultVideo class
Represents a link to a page containing an embedded video player or a video file. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video.
If an InlineQueryResultVideo message contains an embedded video (e.g., YouTube), you must replace its content using input_message_content.
- Implemented types
Constructors
- InlineQueryResultVideo({required String videoUrl, required String mimeType, required String thumbnailUrl, required String title, required String id, ParseMode? parseMode, int? videoWidth, int? videoHeight, int? videoDuration, String? description, InlineKeyboardMarkup? replyMarkup, InputMessageContent? inputMessageContent, bool? showCaptionAboveMedia})
-
Constructs an InlineQueryResultVideo object
const
-
InlineQueryResultVideo.fromJson(Map<
String, dynamic> json) -
Constructs an InlineQueryResultVideo from JSON object
factory
Properties
-
Optional. Caption of the video to be sent, 0-1024 characters after entities parsing
final
-
Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
final
- description → String?
-
Optional. Short description of the result
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Unique identifier for this result, 1-64 Bytes
final
- inputMessageContent → InputMessageContent?
-
Optional. Content of the message to be sent instead of the video. This field is required if InlineQueryResultVideo is used to send an HTML-page as a result (e.g., a YouTube video).
final
- mimeType → String
-
MIME type of the content of the video URL, “text/html” or “video/mp4”
final
- parseMode → ParseMode?
-
Optional. Mode for parsing entities in the video caption. See formatting options for more details.
final
- replyMarkup → InlineKeyboardMarkup?
-
Optional. Inline keyboard attached to the message
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showCaptionAboveMedia → bool?
-
Optional. True, if the caption must be shown above the message media
final
- thumbnailUrl → String
-
URL of the thumbnail (JPEG only) for the video
final
- title → String
-
Title for the result
final
- type → InlineQueryResultType
-
Type of the result, always InlineQueryResultType.video
no setteroverride
- videoDuration → int?
-
Optional. Video duration in seconds
final
- videoHeight → int?
-
Optional. Video height
final
- videoUrl → String
-
A valid URL for the embedded video player or video file
final
- videoWidth → int?
-
Optional. Video width
final
Methods
-
copyWith(
{String? id, String? videoUrl, String? mimeType, String? thumbnailUrl, String? title, ParseMode? parseMode, int? videoWidth, int? videoHeight, int? videoDuration, String? description, InlineKeyboardMarkup? replyMarkup, InputMessageContent? inputMessageContent, bool? showCaptionAboveMedia}) → InlineQueryResultVideo - Copy method
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts InlineQueryResultVideo object to a JSON object
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited