Class: Telegrammer::DataTypes::InlineQueryResultPhoto

Inherits:
Base
  • Object
show all
Defined in:
lib/telegrammer/data_types/inline_query_result_photo.rb

Overview

Telegram InlineQueryResultPhoto data type

See more at core.telegram.org/bots/api#inlinequeryresultphoto

Instance Attribute Summary collapse

Instance Attribute Details

#captionString

Optional. Caption of the photo to be sent, 0-200 characters

Returns:

  • (String)

    the current value of caption



19
20
21
# File 'lib/telegrammer/data_types/inline_query_result_photo.rb', line 19

def caption
  @caption
end

#descriptionString

Optional. Short description of the result

Returns:

  • (String)

    the current value of description



19
20
21
# File 'lib/telegrammer/data_types/inline_query_result_photo.rb', line 19

def description
  @description
end

#disable_web_page_previewBoolean

Optional. Disables link previews for links in the sent message

Returns:

  • (Boolean)

    the current value of disable_web_page_preview



19
20
21
# File 'lib/telegrammer/data_types/inline_query_result_photo.rb', line 19

def disable_web_page_preview
  @disable_web_page_preview
end

#idString

Unique identifier for this result, 1-64 Bytes

Returns:

  • (String)

    the current value of id



19
20
21
# File 'lib/telegrammer/data_types/inline_query_result_photo.rb', line 19

def id
  @id
end

#message_textString

Optional. Text of a message to be sent instead of the photo, 1-512 characters

Returns:

  • (String)

    the current value of message_text



19
20
21
# File 'lib/telegrammer/data_types/inline_query_result_photo.rb', line 19

def message_text
  @message_text
end

#parse_modeString

Optional. Send “Markdown”, if you want Telegram apps to show bold, italic and inline URLs in your bot’s message.

Returns:

  • (String)

    the current value of parse_mode



19
20
21
# File 'lib/telegrammer/data_types/inline_query_result_photo.rb', line 19

def parse_mode
  @parse_mode
end

#photo_heightInteger

Optional. Height of the photo

Returns:

  • (Integer)

    the current value of photo_height



19
20
21
# File 'lib/telegrammer/data_types/inline_query_result_photo.rb', line 19

def photo_height
  @photo_height
end

#photo_urlString

A valid URL of the photo. Photo must be in jpeg format. Photo size must not exceed 5MB

Returns:

  • (String)

    the current value of photo_url



19
20
21
# File 'lib/telegrammer/data_types/inline_query_result_photo.rb', line 19

def photo_url
  @photo_url
end

#photo_widthInteger

Optional. Width of the photo

Returns:

  • (Integer)

    the current value of photo_width



19
20
21
# File 'lib/telegrammer/data_types/inline_query_result_photo.rb', line 19

def photo_width
  @photo_width
end

#thumb_urlString

URL of the thumbnail for the photo

Returns:

  • (String)

    the current value of thumb_url



19
20
21
# File 'lib/telegrammer/data_types/inline_query_result_photo.rb', line 19

def thumb_url
  @thumb_url
end

#titleString

Title of the result

Returns:

  • (String)

    the current value of title



19
20
21
# File 'lib/telegrammer/data_types/inline_query_result_photo.rb', line 19

def title
  @title
end

#typeString

Type of the result, must be photo

Returns:

  • (String)

    the current value of type



19
20
21
# File 'lib/telegrammer/data_types/inline_query_result_photo.rb', line 19

def type
  @type
end