Show / Hide Table of Contents

Class InlineQueryResultGif

Represents a link to an animated GIF file. By default, this animated GIF 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.

Inheritance
System.Object
InlineQueryResult
InlineQueryResultGif
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TelegramBotApi.Types.Inline
Assembly: TelegramBotApi.dll
Syntax
[JsonObject(MemberSerialization = MemberSerialization.OptIn, ItemNullValueHandling = NullValueHandling.Ignore)]
public class InlineQueryResultGif : InlineQueryResult

Properties

| Improve this Doc View Source

Caption

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
| Improve this Doc View Source

GifDuration

Optional. Duration of the GIF

Declaration
[JsonProperty(PropertyName = "gif_duration")]
public int GifDuration { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

GifHeight

Optional. Height of the GIF

Declaration
[JsonProperty(PropertyName = "gif_height")]
public int GifHeight { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

GifUrl

A valid URL for the GIF file. File size must not exceed 1MB

Declaration
[JsonProperty(PropertyName = "gif_url", Required = Required.Always)]
public string GifUrl { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

GifWidth

Optional. Width of the GIF

Declaration
[JsonProperty(PropertyName = "gif_width")]
public int GifWidth { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

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
InlineQueryResult.Id
| Improve this Doc View Source

InputMessageContent

Optional. Content of the message to be sent instead of the GIF animation

Declaration
[JsonProperty(PropertyName = "input_message_content", Required = Required.Always)]
public InputMessageContent InputMessageContent { get; set; }
Property Value
Type Description
InputMessageContent
| Improve this Doc View Source

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
| Improve this Doc View Source

ReplyMarkup

Optional. Inline keyboard attached to the message

Declaration
[JsonProperty(PropertyName = "reply_markup")]
public InlineKeyboardMarkup ReplyMarkup { get; set; }
Property Value
Type Description
InlineKeyboardMarkup
| Improve this Doc View Source

ThumbUrl

URL of the static thumbnail for the result (jpeg or gif)

Declaration
[JsonProperty(PropertyName = "thumb_url", Required = Required.Always)]
public string ThumbUrl { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Title

Optional. Title for the result

Declaration
[JsonProperty(PropertyName = "title")]
public string Title { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Type

Type of the result, must be gif

Declaration
[JsonProperty(PropertyName = "type", Required = Required.Always)]
public override string Type { get; set; }
Property Value
Type Description
System.String
Overrides
InlineQueryResult.Type
  • Improve this Doc
  • View Source
Back to top Generated by DocFX