Class InlineQueryResultMpeg4Gif
Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default, this animated MPEG-4 file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.
Inherited Members
Namespace: TelegramBotApi.Types.Inline
Assembly: TelegramBotApi.dll
Syntax
[JsonObject(MemberSerialization = MemberSerialization.OptIn, ItemNullValueHandling = NullValueHandling.Ignore)]
public class InlineQueryResultMpeg4Gif : InlineQueryResult
Properties
| Improve this Doc View SourceCaption
Optional. Caption of the MPEG-4 file to be sent, 0-200 characters
Declaration
[JsonProperty(PropertyName = "caption")]
public string Caption { 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
Optional. Content of the message to be sent instead of the video animation
Declaration
[JsonProperty(PropertyName = "input_message_content", Required = Required.Always)]
public InputMessageContent InputMessageContent { get; set; }
Property Value
Type | Description |
---|---|
InputMessageContent |
Mpeg4Duration
Optional. Video duration
Declaration
[JsonProperty(PropertyName = "mpeg4_duration")]
public int Mpeg4Duration { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Mpeg4Height
Optional. Video height
Declaration
[JsonProperty(PropertyName = "mpeg4_height")]
public int Mpeg4Height { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Mpeg4Url
A valid URL for the MP4 file. File size must not exceed 1MB
Declaration
[JsonProperty(PropertyName = "mpeg4_url", Required = Required.Always)]
public string Mpeg4Url { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Mpeg4Width
Optional. Video width
Declaration
[JsonProperty(PropertyName = "mpeg4_width")]
public int Mpeg4Width { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ParseMode
Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message.
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 static thumbnail (jpeg or gif) for the result
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 mpeg4_gif
Declaration
[JsonProperty(PropertyName = "type", Required = Required.Always)]
public override string Type { get; set; }
Property Value
Type | Description |
---|---|
System.String |