Class InlineQueryResultVideo
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.
Inherited Members
Namespace: TelegramBotApi.Types.Inline
Assembly: TelegramBotApi.dll
Syntax
[JsonObject(MemberSerialization = MemberSerialization.OptIn, ItemNullValueHandling = NullValueHandling.Ignore)]
public class InlineQueryResultVideo : InlineQueryResult
Properties
| Improve this Doc View SourceCaption
Optional. Caption of the GIF file to be sent, 0-200 characters
Declaration
[JsonProperty(PropertyName = "caption")]
public string Caption { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Description
Optional. Short description of the result
Declaration
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Id
Unique identifier for this result, 1-64 Bytes
Declaration
[JsonProperty(PropertyName = "id", Required = Required.Always)]
public override string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceInputMessageContent
Content of the message to be sent. This field is required if InlineQueryResultVideo is used to send an HTML-page as a result (e.g., a YouTube video).
Declaration
[JsonProperty(PropertyName = "input_message_content")]
public InputMessageContent InputMessageContent { get; set; }
Property Value
Type | Description |
---|---|
InputMessageContent |
MimeType
Mime type of the content of video url, “text/html” or “video/mp4”
Declaration
[JsonProperty(PropertyName = "mime_type", Required = Required.Always)]
public string MimeType { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ParseMode
The parse mode of the caption
Declaration
public ParseMode ParseMode { get; set; }
Property Value
Type | Description |
---|---|
ParseMode |
ReplyMarkup
Optional. Inline keyboard attached to the message
Declaration
[JsonProperty(PropertyName = "reply_markup")]
public InlineKeyboardMarkup ReplyMarkup { get; set; }
Property Value
Type | Description |
---|---|
InlineKeyboardMarkup |
ThumbUrl
URL of the thumbnail (jpeg only) for the video
Declaration
[JsonProperty(PropertyName = "thumb_url", Required = Required.Always)]
public string ThumbUrl { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Title
Optional. Title for the result
Declaration
[JsonProperty(PropertyName = "title")]
public string Title { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Type
Type of the result, must be video
Declaration
[JsonProperty(PropertyName = "type", Required = Required.Always)]
public override string Type { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceVideoDuration
Optional. Video duration in seconds
Declaration
[JsonProperty(PropertyName = "video_duration")]
public int VideoDuration { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
VideoHeight
Optional. Video Height
Declaration
[JsonProperty(PropertyName = "video_height")]
public int VideoHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
VideoUrl
A valid URL for the embedded video player or video file
Declaration
[JsonProperty(PropertyName = "video_url", Required = Required.Always)]
public string VideoUrl { get; set; }
Property Value
Type | Description |
---|---|
System.String |
VideoWidth
Optional. Video Width
Declaration
[JsonProperty(PropertyName = "video_width")]
public int VideoWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |