Class: TD::Types::InlineQueryResult::Article

Inherits:
TD::Types::InlineQueryResult show all
Defined in:
lib/tdlib/types/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

#descriptionTD::Types::String

A short description of the result.

Returns:

  • (TD::Types::String)

    the current value of description



10
11
12
# File 'lib/tdlib/types/inline_query_result/article.rb', line 10

def description
  @description
end

#hide_urlBoolean

True, if the URL must be not shown.

Returns:

  • (Boolean)

    the current value of hide_url



10
11
12
# File 'lib/tdlib/types/inline_query_result/article.rb', line 10

def hide_url
  @hide_url
end

#idTD::Types::String

Unique identifier of the query result.

Returns:

  • (TD::Types::String)

    the current value of id



10
11
12
# File 'lib/tdlib/types/inline_query_result/article.rb', line 10

def id
  @id
end

#thumbnailTD::Types::Thumbnail?

Result thumbnail in JPEG format; may be null.

Returns:



10
11
12
# File 'lib/tdlib/types/inline_query_result/article.rb', line 10

def thumbnail
  @thumbnail
end

#titleTD::Types::String

Title of the result.

Returns:

  • (TD::Types::String)

    the current value of title



10
11
12
# File 'lib/tdlib/types/inline_query_result/article.rb', line 10

def title
  @title
end

#urlTD::Types::String

URL of the result, if it exists.

Returns:

  • (TD::Types::String)

    the current value of url



10
11
12
# File 'lib/tdlib/types/inline_query_result/article.rb', line 10

def url
  @url
end