Telegram::InlineQueryResultDocument
Inherits JSON::Serializable < Struct < Value < Object
Telegram API type: 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.
Constructors
new(type : String, id : String, title : String, document_url : String, mime_type : String, caption : String | Nil = nil, parse_mode : String | Nil = nil, caption_entities : Array(MessageEntity) | Nil = nil, description : String | Nil = nil, reply_markup : InlineKeyboardMarkup | Nil = nil, input_message_content : InputMessageContent | Nil = nil, thumbnail_url : String | Nil = nil, thumbnail_width : Int64 | Nil = nil, thumbnail_height : Int64 | Nil = nil)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
caption
caption_entities
clone
Sourcecopy_with(type _type = @type, id _id = @id, title _title = @title, document_url _document_url = @document_url, mime_type _mime_type = @mime_type, caption _caption = @caption, parse_mode _parse_mode = @parse_mode, caption_entities _caption_entities = @caption_entities, description _description = @description, reply_markup _reply_markup = @reply_markup, input_message_content _input_message_content = @input_message_content, thumbnail_url _thumbnail_url = @thumbnail_url, thumbnail_width _thumbnail_width = @thumbnail_width, thumbnail_height _thumbnail_height = @thumbnail_height)
Sourcedescription
document_url
id
input_message_content
mime_type
parse_mode
reply_markup
thumbnail_height
thumbnail_url
thumbnail_width
title
type