class Tourmaline::InlineQueryResultArticle
- Tourmaline::InlineQueryResultArticle
- Reference
- Object
Overview
Represents a link to an article or web page.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .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)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#description : String | Nil
Optional.
-
#description=(description : String | Nil)
Optional.
-
#hide_url=(hide_url : Bool | Nil)
Optional.
-
#hide_url? : Bool | Nil
Optional.
-
#id : String
Unique identifier for this result, 1-64 Bytes
-
#id=(id : String)
Unique identifier for this result, 1-64 Bytes
-
#input_message_content : Tourmaline::InputMessageContent
Content of the message to be sent
-
#input_message_content=(input_message_content : Tourmaline::InputMessageContent)
Content of the message to be sent
-
#reply_markup : Tourmaline::InlineKeyboardMarkup | Nil
Optional.
-
#reply_markup=(reply_markup : Tourmaline::InlineKeyboardMarkup | Nil)
Optional.
-
#thumbnail_height : Int32 | Int64 | Nil
Optional.
-
#thumbnail_height=(thumbnail_height : Int32 | Int64 | Nil)
Optional.
-
#thumbnail_url : String | Nil
Optional.
-
#thumbnail_url=(thumbnail_url : String | Nil)
Optional.
-
#thumbnail_width : Int32 | Int64 | Nil
Optional.
-
#thumbnail_width=(thumbnail_width : Int32 | Int64 | Nil)
Optional.
-
#title : String
Title of the result
-
#title=(title : String)
Title of the result
-
#type : String
Type of the result, must be article
-
#type=(type : String)
Type of the result, must be article
-
#url : String | Nil
Optional.
-
#url=(url : String | Nil)
Optional.
Constructor Detail
def self.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)
#
Instance Method Detail
def hide_url=(hide_url : Bool | Nil)
#
Optional. Pass True if you don't want the URL to be shown in the message
def hide_url? : Bool | Nil
#
Optional. Pass True if you don't want the URL to be shown in the message
def input_message_content=(input_message_content : Tourmaline::InputMessageContent)
#
Content of the message to be sent
def reply_markup : Tourmaline::InlineKeyboardMarkup | Nil
#
Optional. Inline keyboard attached to the message
def reply_markup=(reply_markup : Tourmaline::InlineKeyboardMarkup | Nil)
#
Optional. Inline keyboard attached to the message