class Tourmaline::InlineQueryResultArticle

Overview

Represents a link to an article or web page.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

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) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def description : String | Nil #

Optional. Short description of the result


[View source]
def description=(description : String | Nil) #

Optional. Short description of the result


[View source]
def hide_url=(hide_url : Bool | Nil) #

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


[View source]
def hide_url? : Bool | Nil #

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


[View source]
def id : String #

Unique identifier for this result, 1-64 Bytes


[View source]
def id=(id : String) #

Unique identifier for this result, 1-64 Bytes


[View source]
def input_message_content : Tourmaline::InputMessageContent #

Content of the message to be sent


[View source]
def input_message_content=(input_message_content : Tourmaline::InputMessageContent) #

Content of the message to be sent


[View source]
def reply_markup : Tourmaline::InlineKeyboardMarkup | Nil #

Optional. Inline keyboard attached to the message


[View source]
def reply_markup=(reply_markup : Tourmaline::InlineKeyboardMarkup | Nil) #

Optional. Inline keyboard attached to the message


[View source]
def thumbnail_height : Int32 | Int64 | Nil #

Optional. Thumbnail height


[View source]
def thumbnail_height=(thumbnail_height : Int32 | Int64 | Nil) #

Optional. Thumbnail height


[View source]
def thumbnail_url : String | Nil #

Optional. Url of the thumbnail for the result


[View source]
def thumbnail_url=(thumbnail_url : String | Nil) #

Optional. Url of the thumbnail for the result


[View source]
def thumbnail_width : Int32 | Int64 | Nil #

Optional. Thumbnail width


[View source]
def thumbnail_width=(thumbnail_width : Int32 | Int64 | Nil) #

Optional. Thumbnail width


[View source]
def title : String #

Title of the result


[View source]
def title=(title : String) #

Title of the result


[View source]
def type : String #

Type of the result, must be article


[View source]
def type=(type : String) #

Type of the result, must be article


[View source]
def url : String | Nil #

Optional. URL of the result


[View source]
def url=(url : String | Nil) #

Optional. URL of the result


[View source]