Class: TD::Types::InputInlineQueryResult::Photo

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

Overview

Represents link to a JPEG image.

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, if known.

Returns:

  • (TD::Types::String)

    the current value of description



16
17
18
# File 'lib/tdlib/types/input_inline_query_result/photo.rb', line 16

def description
  @description
end

#idTD::Types::String

Unique identifier of the query result.

Returns:

  • (TD::Types::String)

    the current value of id



16
17
18
# File 'lib/tdlib/types/input_inline_query_result/photo.rb', line 16

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, inputMessagePhoto, inputMessageInvoice, inputMessageLocation, TD::Types::InputMessageContent::Venue or inputMessageContact.

Returns:



16
17
18
# File 'lib/tdlib/types/input_inline_query_result/photo.rb', line 16

def input_message_content
  @input_message_content
end

#photo_heightInteger

Height of the photo.

Returns:

  • (Integer)

    the current value of photo_height



16
17
18
# File 'lib/tdlib/types/input_inline_query_result/photo.rb', line 16

def photo_height
  @photo_height
end

#photo_urlTD::Types::String

The URL of the JPEG photo (photo size must not exceed 5MB).

Returns:

  • (TD::Types::String)

    the current value of photo_url



16
17
18
# File 'lib/tdlib/types/input_inline_query_result/photo.rb', line 16

def photo_url
  @photo_url
end

#photo_widthInteger

Width of the photo.

Returns:

  • (Integer)

    the current value of photo_width



16
17
18
# File 'lib/tdlib/types/input_inline_query_result/photo.rb', line 16

def photo_width
  @photo_width
end

#reply_markupTD::Types::ReplyMarkup

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

Returns:



16
17
18
# File 'lib/tdlib/types/input_inline_query_result/photo.rb', line 16

def reply_markup
  @reply_markup
end

#thumbnail_urlTD::Types::String

URL of the photo thumbnail, if it exists.

Returns:

  • (TD::Types::String)

    the current value of thumbnail_url



16
17
18
# File 'lib/tdlib/types/input_inline_query_result/photo.rb', line 16

def thumbnail_url
  @thumbnail_url
end

#titleTD::Types::String

Title of the result, if known.

Returns:

  • (TD::Types::String)

    the current value of title



16
17
18
# File 'lib/tdlib/types/input_inline_query_result/photo.rb', line 16

def title
  @title
end