Class: Telegrammer::DataTypes::InlineQueryResultGif

Inherits:
Base
  • Object
show all
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

Instance Attribute Details

#captionString

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

Returns:

  • (String)

    the current value of caption



18
19
20
# File 'lib/telegrammer/data_types/inline_query_result_gif.rb', line 18

def caption
  @caption
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



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_heightInteger

Optional. Height of the GIF

Returns:

  • (Integer)

    the current value of gif_height



18
19
20
# File 'lib/telegrammer/data_types/inline_query_result_gif.rb', line 18

def gif_height
  @gif_height
end

#gif_urlString

A valid URL for the GIF file. File size must not exceed 1MB

Returns:

  • (String)

    the current value of gif_url



18
19
20
# File 'lib/telegrammer/data_types/inline_query_result_gif.rb', line 18

def gif_url
  @gif_url
end

#gif_widthInteger

Optional. Width of the GIF

Returns:

  • (Integer)

    the current value of gif_width



18
19
20
# File 'lib/telegrammer/data_types/inline_query_result_gif.rb', line 18

def gif_width
  @gif_width
end

#idString

Unique identifier for this result, 1-64 bytes

Returns:

  • (String)

    the current value of id



18
19
20
# File 'lib/telegrammer/data_types/inline_query_result_gif.rb', line 18

def id
  @id
end

#message_textString

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

Returns:

  • (String)

    the current value of message_text



18
19
20
# File 'lib/telegrammer/data_types/inline_query_result_gif.rb', line 18

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



18
19
20
# File 'lib/telegrammer/data_types/inline_query_result_gif.rb', line 18

def parse_mode
  @parse_mode
end

#thumb_urlString

URL of the static thumbnail for the result (jpeg or gif)

Returns:

  • (String)

    the current value of thumb_url



18
19
20
# File 'lib/telegrammer/data_types/inline_query_result_gif.rb', line 18

def thumb_url
  @thumb_url
end

#titleString

Optional. Title for the result

Returns:

  • (String)

    the current value of title



18
19
20
# File 'lib/telegrammer/data_types/inline_query_result_gif.rb', line 18

def title
  @title
end

#typeString

Type of the result, must be gif

Returns:

  • (String)

    the current value of type



18
19
20
# File 'lib/telegrammer/data_types/inline_query_result_gif.rb', line 18

def type
  @type
end