class Telegram::API::InlineQueryResultArticle

Overview

Represents a link to an article or web page.

Defined in:

telegram/api/generated/types.cr

Constructors

Instance Method Summary

Instance methods inherited from class Telegram::API::Type

==(other) ==, client client

Constructor methods inherited from class Telegram::API::Type

new(pull : JSON::PullParser) new

Constructor Detail

def self.new(type : String, id : String, title : String, input_message_content : InputMessageContent, reply_markup : InlineKeyboardMarkup | Nil = nil, url : String | Nil = nil, hide_url : Bool | Nil = nil, description : String | Nil = nil, thumb_url : String | Nil = nil, thumb_width : Int32 | Nil = nil, thumb_height : Int32 | Nil = nil) #

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

Represents a link to an article or web page.


[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 : Bool | Nil #

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


[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 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 : InputMessageContent #

Content of the message to be sent


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

Content of the message to be sent


[View source]
def reply_markup : InlineKeyboardMarkup | Nil #

Optional. Inline keyboard attached to the message


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

Optional. Inline keyboard attached to the message


[View source]
def thumb_height : Int32 | Nil #

Optional. Thumbnail height


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

Optional. Thumbnail height


[View source]
def thumb_url : String | Nil #

Optional. Url of the thumbnail for the result


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

Optional. Url of the thumbnail for the result


[View source]
def thumb_width : Int32 | Nil #

Optional. Thumbnail width


[View source]
def thumb_width=(thumb_width : Int32 | 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]