Class: Telegrammer::DataTypes::InlineQueryResultPhoto
- 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
-
#caption ⇒ String
Optional.
-
#description ⇒ String
Optional.
-
#disable_web_page_preview ⇒ Boolean
Optional.
-
#id ⇒ String
Unique identifier for this result, 1-64 Bytes.
-
#message_text ⇒ String
Optional.
-
#parse_mode ⇒ String
Optional.
-
#photo_height ⇒ Integer
Optional.
-
#photo_url ⇒ String
A valid URL of the photo.
-
#photo_width ⇒ Integer
Optional.
-
#thumb_url ⇒ String
URL of the thumbnail for the photo.
-
#title ⇒ String
Title of the result.
-
#type ⇒ String
Type of the result, must be photo.
Instance Attribute Details
#caption ⇒ String
Optional. Caption of the photo to be sent, 0-200 characters
19 20 21 |
# File 'lib/telegrammer/data_types/inline_query_result_photo.rb', line 19 def @caption end |
#description ⇒ String
Optional. Short description of the result
19 20 21 |
# File 'lib/telegrammer/data_types/inline_query_result_photo.rb', line 19 def description @description end |
#disable_web_page_preview ⇒ Boolean
Optional. Disables link previews for links in the sent message
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 |
#id ⇒ String
Unique identifier for this result, 1-64 Bytes
19 20 21 |
# File 'lib/telegrammer/data_types/inline_query_result_photo.rb', line 19 def id @id end |
#message_text ⇒ String
Optional. Text of a message to be sent instead of the photo, 1-512 characters
19 20 21 |
# File 'lib/telegrammer/data_types/inline_query_result_photo.rb', line 19 def @message_text end |
#parse_mode ⇒ String
Optional. Send “Markdown”, if you want Telegram apps to show bold, italic and inline URLs in your bot’s message.
19 20 21 |
# File 'lib/telegrammer/data_types/inline_query_result_photo.rb', line 19 def parse_mode @parse_mode end |
#photo_height ⇒ Integer
Optional. Height of the photo
19 20 21 |
# File 'lib/telegrammer/data_types/inline_query_result_photo.rb', line 19 def photo_height @photo_height end |
#photo_url ⇒ String
A valid URL of the photo. Photo must be in jpeg format. Photo size must not exceed 5MB
19 20 21 |
# File 'lib/telegrammer/data_types/inline_query_result_photo.rb', line 19 def photo_url @photo_url end |
#photo_width ⇒ Integer
Optional. Width of the photo
19 20 21 |
# File 'lib/telegrammer/data_types/inline_query_result_photo.rb', line 19 def photo_width @photo_width end |
#thumb_url ⇒ String
URL of the thumbnail for the photo
19 20 21 |
# File 'lib/telegrammer/data_types/inline_query_result_photo.rb', line 19 def thumb_url @thumb_url end |
#title ⇒ String
Title of the result
19 20 21 |
# File 'lib/telegrammer/data_types/inline_query_result_photo.rb', line 19 def title @title end |
#type ⇒ String
Type of the result, must be photo
19 20 21 |
# File 'lib/telegrammer/data_types/inline_query_result_photo.rb', line 19 def type @type end |