Skip to content

class Tourmaline::InlineQueryResultArticle
inherits Reference #

Represents a link to an article or web page.

Included modules

JSON::Serializable

Constructors#

.new(id, title, input_message_content, type = "article", reply_markup : Tourmaline::InlineKeyboardMarkup? = nil, url : String? = nil, hide_url : Bool? = nil, description : String? = nil, thumbnail_url : String? = nil, thumbnail_width : Int32 | Int64 | Nil = nil, thumbnail_height : Int32 | Int64 | Nil = nil) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#description : String? #

Optional. Short description of the result

View source

#description=(description : String?) #

Optional. Short description of the result

View source

#hide_url=(hide_url : Bool?) #

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

View source

#hide_url? : Bool? #

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

View source

#id : String #

Unique identifier for this result, 1-64 Bytes

View source

#id=(id : String) #

Unique identifier for this result, 1-64 Bytes

View source

#input_message_content : Tourmaline::InputMessageContent #

Content of the message to be sent

View source

#input_message_content=(input_message_content : Tourmaline::InputMessageContent) #

Content of the message to be sent

View source

#reply_markup : Tourmaline::InlineKeyboardMarkup? #

Optional. Inline keyboard attached to the message

View source

#reply_markup=(reply_markup : Tourmaline::InlineKeyboardMarkup?) #

Optional. Inline keyboard attached to the message

View source

#thumbnail_height : Int32 | Int64 | Nil #

Optional. Thumbnail height

View source

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

Optional. Thumbnail height

View source

#thumbnail_url : String? #

Optional. Url of the thumbnail for the result

View source

#thumbnail_url=(thumbnail_url : String?) #

Optional. Url of the thumbnail for the result

View source

#thumbnail_width : Int32 | Int64 | Nil #

Optional. Thumbnail width

View source

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

Optional. Thumbnail width

View source

#title : String #

Title of the result

View source

#title=(title : String) #

Title of the result

View source

#type : String #

Type of the result, must be article

View source

#type=(type : String) #

Type of the result, must be article

View source

#url : String? #

Optional. URL of the result

View source

#url=(url : String?) #

Optional. URL of the result

View source