InlineQueryResultDocument

data class InlineQueryResultDocument(type: String, id: String, title: String, caption: String?, parse_mode: ParseMode?, caption_entities: List<MessageEntity>?, document_url: String, mime_type: String, description: String?, reply_markup: InlineKeyboardMarkup?, input_message_content: InputMessageContent?, thumb_url: String?, thumb_width: Long?, thumb_height: Long?) : InlineQueryResult

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.

Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.

Constructors

InlineQueryResultDocument
Link copied to clipboard
fun InlineQueryResultDocument(type: String, id: String, title: String, caption: String? = null, parse_mode: ParseMode? = null, caption_entities: List<MessageEntity>? = null, document_url: String, mime_type: String, description: String? = null, reply_markup: InlineKeyboardMarkup? = null, input_message_content: InputMessageContent? = null, thumb_url: String? = null, thumb_width: Long? = null, thumb_height: Long? = null)

Properties

caption
Link copied to clipboard
val caption: String? = null
Optional.
caption_entities
Link copied to clipboard
val caption_entities: List<MessageEntity>? = null
Optional.
description
Link copied to clipboard
val description: String? = null
Optional.
document_url
Link copied to clipboard
val document_url: String
A valid URL for the file
id
Link copied to clipboard
val id: String
Unique identifier for this result, 1-64 bytes
input_message_content
Link copied to clipboard
val input_message_content: InputMessageContent? = null
Optional.
mime_type
Link copied to clipboard
val mime_type: String
Mime type of the content of the file, either “application/pdf” or “application/zip”
parse_mode
Link copied to clipboard
val parse_mode: ParseMode? = null
Optional.
reply_markup
Link copied to clipboard
val reply_markup: InlineKeyboardMarkup? = null
Optional.
thumb_height
Link copied to clipboard
val thumb_height: Long? = null
Optional.
thumb_url
Link copied to clipboard
val thumb_url: String? = null
Optional.
thumb_width
Link copied to clipboard
val thumb_width: Long? = null
Optional.
title
Link copied to clipboard
val title: String
Title for the result
type
Link copied to clipboard
val type: String
Type of the result, must be document