class

Tourmaline::InlineQueryResultArticle

Inherits JSON::Serializable / Reference / Object

Represents a link to an article or web page.

Constructors

new(id : String, title : String, input_message_content : Tourmaline::InputContactMessageContent | Tourmaline::InputInvoiceMessageContent | Tourmaline::InputLocationMessageContent | Tourmaline::InputTextMessageContent | Tourmaline::InputVenueMessageContent, type : String = "article", reply_markup : Tourmaline::InlineKeyboardMarkup | Nil = nil, url : String | Nil = nil, hide_url : Bool | Nil = nil, description : String | Nil = nil, thumbnail_url : String | Nil = nil, thumbnail_width : Int32 | Int64 | Nil = nil, thumbnail_height : Int32 | Int64 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

description

Optional. Short description of the result

Source
description=(description : String | Nil)

Optional. Short description of the result

Source
hide_url=(hide_url : Bool | Nil)

Optional. Pass True if you don't want the URL to be shown in the message

Source
hide_url?

Optional. Pass True if you don't want the URL to be shown in the message

Source
id

Unique identifier for this result, 1-64 Bytes

Source
id=(id : String)

Unique identifier for this result, 1-64 Bytes

Source
input_message_content

Content of the message to be sent

Source
input_message_content=(input_message_content : Tourmaline::InputMessageContent)

Content of the message to be sent

Source
reply_markup

Optional. Inline keyboard attached to the message

Source
reply_markup=(reply_markup : Tourmaline::InlineKeyboardMarkup | Nil)

Optional. Inline keyboard attached to the message

Source
thumbnail_height

Optional. Thumbnail height

Source
thumbnail_height=(thumbnail_height : Int32 | Int64 | Nil)

Optional. Thumbnail height

Source
thumbnail_url

Optional. Url of the thumbnail for the result

Source
thumbnail_url=(thumbnail_url : String | Nil)

Optional. Url of the thumbnail for the result

Source
thumbnail_width

Optional. Thumbnail width

Source
thumbnail_width=(thumbnail_width : Int32 | Int64 | Nil)

Optional. Thumbnail width

Source
title

Title of the result

Source
title=(title : String)

Title of the result

Source
type

Type of the result, must be article

Source
type=(type : String)

Type of the result, must be article

Source
url

Optional. URL of the result

Source
url=(url : String | Nil)

Optional. URL of the result

Source