Class: TD::Types::InputInlineQueryResult::Video

Inherits:
TD::Types::InputInlineQueryResult show all
Defined in:
lib/tdlib/types/input_inline_query_result/video.rb

Overview

Represents a link to a page containing an embedded video player or a video file.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#descriptionString

A short description of the result, if known.

Returns:

  • (String)

    the current value of description



19
20
21
# File 'lib/tdlib/types/input_inline_query_result/video.rb', line 19

def description
  @description
end

#idString

Unique identifier of the query result.

Returns:

  • (String)

    the current value of id



19
20
21
# File 'lib/tdlib/types/input_inline_query_result/video.rb', line 19

def id
  @id
end

#input_message_contentTD::Types::InputMessageContent

The content of the message to be sent. Must be one of the following types: InputMessageText, InputMessageVideo, InputMessageLocation, InputMessageVenue or InputMessageContact.

Returns:



19
20
21
# File 'lib/tdlib/types/input_inline_query_result/video.rb', line 19

def input_message_content
  @input_message_content
end

#mime_typeString

MIME type of the content of the video URL, only "text/html" or "video/mp4" are currently supported.

Returns:

  • (String)

    the current value of mime_type



19
20
21
# File 'lib/tdlib/types/input_inline_query_result/video.rb', line 19

def mime_type
  @mime_type
end

#reply_markupTD::Types::ReplyMarkup

The message reply markup. Must be of type ReplyMarkup::InlineKeyboard or null.

Returns:



19
20
21
# File 'lib/tdlib/types/input_inline_query_result/video.rb', line 19

def reply_markup
  @reply_markup
end

#thumbnail_urlString

The URL of the video thumbnail (JPEG), if it exists.

Returns:

  • (String)

    the current value of thumbnail_url



19
20
21
# File 'lib/tdlib/types/input_inline_query_result/video.rb', line 19

def thumbnail_url
  @thumbnail_url
end

#titleString

Title of the result.

Returns:

  • (String)

    the current value of title



19
20
21
# File 'lib/tdlib/types/input_inline_query_result/video.rb', line 19

def title
  @title
end

#video_durationInteger

Video duration, in seconds.

Returns:

  • (Integer)

    the current value of video_duration



19
20
21
# File 'lib/tdlib/types/input_inline_query_result/video.rb', line 19

def video_duration
  @video_duration
end

#video_heightInteger

Height of the video.

Returns:

  • (Integer)

    the current value of video_height



19
20
21
# File 'lib/tdlib/types/input_inline_query_result/video.rb', line 19

def video_height
  @video_height
end

#video_urlString

URL of the embedded video player or video file.

Returns:

  • (String)

    the current value of video_url



19
20
21
# File 'lib/tdlib/types/input_inline_query_result/video.rb', line 19

def video_url
  @video_url
end

#video_widthInteger

Width of the video.

Returns:

  • (Integer)

    the current value of video_width



19
20
21
# File 'lib/tdlib/types/input_inline_query_result/video.rb', line 19

def video_width
  @video_width
end