Class InlineQueryResultDocument
Represents a link to a file. By default, this 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 file. Currently, only .PDF and .ZIP files can be sent using this method
Inherited Members
Namespace: TelegramBotApi.Types.Inline
Assembly: TelegramBotApi.dll
Syntax
[JsonObject(MemberSerialization = MemberSerialization.OptIn, ItemNullValueHandling = NullValueHandling.Ignore)]
public class InlineQueryResultDocument : InlineQueryResult
Properties
| Improve this Doc View SourceCaption
Optional. Caption, 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 |
DocumentUrl
A valid URL for the file
Declaration
[JsonProperty(PropertyName = "document_url", Required = Required.Always)]
public string DocumentUrl { 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 instead of the file
Declaration
[JsonProperty(PropertyName = "input_message_content", Required = Required.Always)]
public InputMessageContent InputMessageContent { get; set; }
Property Value
Type | Description |
---|---|
InputMessageContent |
MimeType
Mime type of the content of the file, either “application/pdf” or “application/zip”
Declaration
[JsonProperty(PropertyName = "mime_type", Required = Required.Always)]
public string MimeType { get; set; }
Property Value
Type | Description |
---|---|
System.String |
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 |
ThumbHeight
Optional. Thumbnail height
Declaration
[JsonProperty(PropertyName = "thumb_height")]
public int ThumbHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ThumbUrl
Optional. URL of the thumbnail (jpeg only) for the file
Declaration
[JsonProperty(PropertyName = "thumb_url", Required = Required.Always)]
public string ThumbUrl { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ThumbWidth
Optional. Thumbnail width
Declaration
[JsonProperty(PropertyName = "thumb_width")]
public int ThumbWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Title
Recording title
Declaration
[JsonProperty(PropertyName = "title", Required = Required.Always)]
public string Title { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Type
Type of the result, must be document
Declaration
[JsonProperty(PropertyName = "type", Required = Required.Always)]
public override string Type { get; set; }
Property Value
Type | Description |
---|---|
System.String |