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

#descriptionTD::Types::String

A short description of the result, if known.

Returns:

  • (TD::Types::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

#idTD::Types::String

Unique identifier of the query result.

Returns:

  • (TD::Types::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, inputMessageInvoice, inputMessageLocation, TD::Types::InputMessageContent::Venue 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_typeTD::Types::String

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

Returns:

  • (TD::Types::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_urlTD::Types::String

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

Returns:

  • (TD::Types::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

#titleTD::Types::String

Title of the result.

Returns:

  • (TD::Types::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_urlTD::Types::String

URL of the embedded video player or video file.

Returns:

  • (TD::Types::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