Class: TD::Types::InlineQueryResult::Photo

Inherits:
TD::Types::InlineQueryResult show all
Defined in:
lib/tdlib/types/inline_query_result/photo.rb

Overview

Represents a photo.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#descriptionString

A short description of the result, if known.

Returns:

  • (String)

    the current value of description



8
9
10
# File 'lib/tdlib/types/inline_query_result/photo.rb', line 8

def description
  @description
end

#idString

Unique identifier of the query result.

Returns:

  • (String)

    the current value of id



8
9
10
# File 'lib/tdlib/types/inline_query_result/photo.rb', line 8

def id
  @id
end

#photoTD::Types::Photo

Photo.

Returns:



8
9
10
# File 'lib/tdlib/types/inline_query_result/photo.rb', line 8

def photo
  @photo
end

#titleString

Title of the result, if known.

Returns:

  • (String)

    the current value of title



8
9
10
# File 'lib/tdlib/types/inline_query_result/photo.rb', line 8

def title
  @title
end