Class: Telegrammer::DataTypes::InlineQueryResultVideo

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

Overview

Telegram InlineQueryResultVideo data type

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

Instance Attribute Summary collapse

Instance Attribute Details

#descriptionString

Optional. Short description of the result

Returns:

  • (String)

    the current value of description



20
21
22
# File 'lib/telegrammer/data_types/inline_query_result_video.rb', line 20

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



20
21
22
# File 'lib/telegrammer/data_types/inline_query_result_video.rb', line 20

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



20
21
22
# File 'lib/telegrammer/data_types/inline_query_result_video.rb', line 20

def id
  @id
end

#message_textString

Text of the message to be sent with the video, 1-512 characters

Returns:

  • (String)

    the current value of message_text



20
21
22
# File 'lib/telegrammer/data_types/inline_query_result_video.rb', line 20

def message_text
  @message_text
end

#mime_typeString

Mime type of the content of video url, “text/html” or “video/mp4”

Returns:

  • (String)

    the current value of mime_type



20
21
22
# File 'lib/telegrammer/data_types/inline_query_result_video.rb', line 20

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



20
21
22
# File 'lib/telegrammer/data_types/inline_query_result_video.rb', line 20

def parse_mode
  @parse_mode
end

#thumb_urlString

URL of the thumbnail (jpeg only) for the video

Returns:

  • (String)

    the current value of thumb_url



20
21
22
# File 'lib/telegrammer/data_types/inline_query_result_video.rb', line 20

def thumb_url
  @thumb_url
end

#titleString

Title for the result

Returns:

  • (String)

    the current value of title



20
21
22
# File 'lib/telegrammer/data_types/inline_query_result_video.rb', line 20

def title
  @title
end

#typeString

Type of the result, must be video

Returns:

  • (String)

    the current value of type



20
21
22
# File 'lib/telegrammer/data_types/inline_query_result_video.rb', line 20

def type
  @type
end

#video_durationInteger

Optional. Video duration in seconds

Returns:

  • (Integer)

    the current value of video_duration



20
21
22
# File 'lib/telegrammer/data_types/inline_query_result_video.rb', line 20

def video_duration
  @video_duration
end

#video_heightInteger

Optional. Video height

Returns:

  • (Integer)

    the current value of video_height



20
21
22
# File 'lib/telegrammer/data_types/inline_query_result_video.rb', line 20

def video_height
  @video_height
end

#video_urlString

A valid URL for the embedded video player or video file

Returns:

  • (String)

    the current value of video_url



20
21
22
# File 'lib/telegrammer/data_types/inline_query_result_video.rb', line 20

def video_url
  @video_url
end

#video_widthInteger

Optional. Video width

Returns:

  • (Integer)

    the current value of video_width



20
21
22
# File 'lib/telegrammer/data_types/inline_query_result_video.rb', line 20

def video_width
  @video_width
end