Class: Telegrammer::DataTypes::InlineQueryResultMpeg4Gif

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

Overview

Telegram InlineQueryResultMpeg4Gif data type

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

Instance Attribute Summary collapse

Instance Attribute Details

#captionString

Optional. Caption of the MPEG-4 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_mpeg4_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_mpeg4_gif.rb', line 18

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



18
19
20
# File 'lib/telegrammer/data_types/inline_query_result_mpeg4_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_mpeg4_gif.rb', line 18

def message_text
  @message_text
end

#mpeg4_heightInteger

Optional. Video height

Returns:

  • (Integer)

    the current value of mpeg4_height



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

def mpeg4_height
  @mpeg4_height
end

#mpeg4_urlString

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

Returns:

  • (String)

    the current value of mpeg4_url



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

def mpeg4_url
  @mpeg4_url
end

#mpeg4_widthInteger

Optional. Video width

Returns:

  • (Integer)

    the current value of mpeg4_width



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

def mpeg4_width
  @mpeg4_width
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_mpeg4_gif.rb', line 18

def parse_mode
  @parse_mode
end

#thumb_urlString

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

Returns:

  • (String)

    the current value of thumb_url



18
19
20
# File 'lib/telegrammer/data_types/inline_query_result_mpeg4_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_mpeg4_gif.rb', line 18

def title
  @title
end

#typeString

Type of the result, must be mpeg4_gif

Returns:

  • (String)

    the current value of type



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

def type
  @type
end