Class: Telegrammer::DataTypes::InlineQueryResultArticle
- Defined in:
- lib/telegrammer/data_types/inline_query_result_article.rb
Overview
Telegram InlineQueryResultArticle data type
See more at core.telegram.org/bots/api#inlinequeryresultarticle
Instance Attribute Summary collapse
-
#description ⇒ String
Optional.
-
#disable_web_page_preview ⇒ Boolean
Optional.
-
#hide_url ⇒ Boolean
Optional.
-
#id ⇒ String
Unique identifier for this result, 1-64 Bytes.
-
#message_text ⇒ String
Text of the message to be sent.
-
#parse_mode ⇒ String
Optional.
-
#thumb_height ⇒ Integer
Optional.
-
#thumb_url ⇒ String
Optional.
-
#thumb_width ⇒ Integer
Optional.
-
#title ⇒ String
Title of the result.
-
#type ⇒ String
Type of the result, must be article.
-
#url ⇒ String
Optional.
Instance Attribute Details
#description ⇒ String
Optional. Short description of the result
19 20 21 |
# File 'lib/telegrammer/data_types/inline_query_result_article.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_article.rb', line 19 def disable_web_page_preview @disable_web_page_preview end |
#hide_url ⇒ Boolean
Optional. Pass True, if you don’t want the URL to be shown in the message
19 20 21 |
# File 'lib/telegrammer/data_types/inline_query_result_article.rb', line 19 def hide_url @hide_url end |
#id ⇒ String
Unique identifier for this result, 1-64 Bytes
19 20 21 |
# File 'lib/telegrammer/data_types/inline_query_result_article.rb', line 19 def id @id end |
#message_text ⇒ String
Text of the message to be sent
19 20 21 |
# File 'lib/telegrammer/data_types/inline_query_result_article.rb', line 19 def 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_article.rb', line 19 def parse_mode @parse_mode end |
#thumb_height ⇒ Integer
Optional. Thumbnail height
19 20 21 |
# File 'lib/telegrammer/data_types/inline_query_result_article.rb', line 19 def thumb_height @thumb_height end |
#thumb_url ⇒ String
Optional. Url of the thumbnail for the result
19 20 21 |
# File 'lib/telegrammer/data_types/inline_query_result_article.rb', line 19 def thumb_url @thumb_url end |
#thumb_width ⇒ Integer
Optional. Thumbnail width
19 20 21 |
# File 'lib/telegrammer/data_types/inline_query_result_article.rb', line 19 def thumb_width @thumb_width end |
#title ⇒ String
Title of the result
19 20 21 |
# File 'lib/telegrammer/data_types/inline_query_result_article.rb', line 19 def title @title end |
#type ⇒ String
Type of the result, must be article
19 20 21 |
# File 'lib/telegrammer/data_types/inline_query_result_article.rb', line 19 def type @type end |
#url ⇒ String
Optional. URL of the result
19 20 21 |
# File 'lib/telegrammer/data_types/inline_query_result_article.rb', line 19 def url @url end |