Class: Telegrammer::DataTypes::InlineQueryResultGif
- Defined in:
- lib/telegrammer/data_types/inline_query_result_gif.rb
Overview
Telegram InlineQueryResultGif data type
See more at core.telegram.org/bots/api#inlinequeryresultgif
Instance Attribute Summary collapse
-
#caption ⇒ String
Optional.
-
#disable_web_page_preview ⇒ Boolean
Optional.
-
#gif_height ⇒ Integer
Optional.
-
#gif_url ⇒ String
A valid URL for the GIF file.
-
#gif_width ⇒ Integer
Optional.
-
#id ⇒ String
Unique identifier for this result, 1-64 bytes.
-
#message_text ⇒ String
Optional.
-
#parse_mode ⇒ String
Optional.
-
#thumb_url ⇒ String
URL of the static thumbnail for the result (jpeg or gif).
-
#title ⇒ String
Optional.
-
#type ⇒ String
Type of the result, must be gif.
Instance Attribute Details
#caption ⇒ String
Optional. Caption of the GIF file to be sent, 0-200 characters
18 19 20 |
# File 'lib/telegrammer/data_types/inline_query_result_gif.rb', line 18 def @caption end |
#disable_web_page_preview ⇒ Boolean
Optional. Disables link previews for links in the sent message
18 19 20 |
# File 'lib/telegrammer/data_types/inline_query_result_gif.rb', line 18 def disable_web_page_preview @disable_web_page_preview end |
#gif_height ⇒ Integer
Optional. Height of the GIF
18 19 20 |
# File 'lib/telegrammer/data_types/inline_query_result_gif.rb', line 18 def gif_height @gif_height end |
#gif_url ⇒ String
A valid URL for the GIF file. File size must not exceed 1MB
18 19 20 |
# File 'lib/telegrammer/data_types/inline_query_result_gif.rb', line 18 def gif_url @gif_url end |
#gif_width ⇒ Integer
Optional. Width of the GIF
18 19 20 |
# File 'lib/telegrammer/data_types/inline_query_result_gif.rb', line 18 def gif_width @gif_width end |
#id ⇒ String
Unique identifier for this result, 1-64 bytes
18 19 20 |
# File 'lib/telegrammer/data_types/inline_query_result_gif.rb', line 18 def id @id end |
#message_text ⇒ String
Optional. Text of a message to be sent instead of the animation, 1-512 characters
18 19 20 |
# File 'lib/telegrammer/data_types/inline_query_result_gif.rb', line 18 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.
18 19 20 |
# File 'lib/telegrammer/data_types/inline_query_result_gif.rb', line 18 def parse_mode @parse_mode end |
#thumb_url ⇒ String
URL of the static thumbnail for the result (jpeg or gif)
18 19 20 |
# File 'lib/telegrammer/data_types/inline_query_result_gif.rb', line 18 def thumb_url @thumb_url end |
#title ⇒ String
Optional. Title for the result
18 19 20 |
# File 'lib/telegrammer/data_types/inline_query_result_gif.rb', line 18 def title @title end |
#type ⇒ String
Type of the result, must be gif
18 19 20 |
# File 'lib/telegrammer/data_types/inline_query_result_gif.rb', line 18 def type @type end |