Class: TD::Types::InputInlineQueryResult::Article

Inherits:
TD::Types::InputInlineQueryResult show all
Defined in:
lib/tdlib/types/input_inline_query_result/article.rb

Overview

Represents a link to an article or web page.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#descriptionString

A short description of the result.

Returns:

  • (String)

    the current value of description



17
18
19
# File 'lib/tdlib/types/input_inline_query_result/article.rb', line 17

def description
  @description
end

#hide_urlBoolean

True, if the URL must be not shown.

Returns:

  • (Boolean)

    the current value of hide_url



17
18
19
# File 'lib/tdlib/types/input_inline_query_result/article.rb', line 17

def hide_url
  @hide_url
end

#idString

Unique identifier of the query result.

Returns:

  • (String)

    the current value of id



17
18
19
# File 'lib/tdlib/types/input_inline_query_result/article.rb', line 17

def id
  @id
end

#input_message_contentTD::Types::InputMessageContent

The content of the message to be sent. Must be one of the following types: InputMessageText, InputMessageLocation, InputMessageVenue or InputMessageContact.

Returns:



17
18
19
# File 'lib/tdlib/types/input_inline_query_result/article.rb', line 17

def input_message_content
  @input_message_content
end

#reply_markupTD::Types::ReplyMarkup

The message reply markup. Must be of type ReplyMarkup::InlineKeyboard or null.

Returns:



17
18
19
# File 'lib/tdlib/types/input_inline_query_result/article.rb', line 17

def reply_markup
  @reply_markup
end

#thumbnail_heightInteger

Thumbnail height, if known.

Returns:

  • (Integer)

    the current value of thumbnail_height



17
18
19
# File 'lib/tdlib/types/input_inline_query_result/article.rb', line 17

def thumbnail_height
  @thumbnail_height
end

#thumbnail_urlString

URL of the result thumbnail, if it exists.

Returns:

  • (String)

    the current value of thumbnail_url



17
18
19
# File 'lib/tdlib/types/input_inline_query_result/article.rb', line 17

def thumbnail_url
  @thumbnail_url
end

#thumbnail_widthInteger

Thumbnail width, if known.

Returns:

  • (Integer)

    the current value of thumbnail_width



17
18
19
# File 'lib/tdlib/types/input_inline_query_result/article.rb', line 17

def thumbnail_width
  @thumbnail_width
end

#titleString

Title of the result.

Returns:

  • (String)

    the current value of title



17
18
19
# File 'lib/tdlib/types/input_inline_query_result/article.rb', line 17

def title
  @title
end

#urlString

URL of the result, if it exists.

Returns:

  • (String)

    the current value of url



17
18
19
# File 'lib/tdlib/types/input_inline_query_result/article.rb', line 17

def url
  @url
end