Class: TD::Types::MessageContent::Video

Inherits:
TD::Types::MessageContent show all
Defined in:
lib/tdlib/types/message_content/video.rb

Overview

A video message.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#captionTD::Types::FormattedText

Video caption.

Returns:



11
12
13
# File 'lib/tdlib/types/message_content/video.rb', line 11

def caption
  @caption
end

#has_spoilerBoolean

True, if the video preview must be covered by a spoiler animation.

Returns:

  • (Boolean)

    the current value of has_spoiler



11
12
13
# File 'lib/tdlib/types/message_content/video.rb', line 11

def has_spoiler
  @has_spoiler
end

#is_secretBoolean

True, if the video thumbnail must be blurred and the video must be shown only while tapped.

Returns:

  • (Boolean)

    the current value of is_secret



11
12
13
# File 'lib/tdlib/types/message_content/video.rb', line 11

def is_secret
  @is_secret
end

#show_caption_above_mediaBoolean

True, if the caption must be shown above the video; otherwise, the caption must be shown below the video.

Returns:

  • (Boolean)

    the current value of show_caption_above_media



11
12
13
# File 'lib/tdlib/types/message_content/video.rb', line 11

def show_caption_above_media
  @show_caption_above_media
end

#videoTD::Types::Video

The video description.

Returns:



11
12
13
# File 'lib/tdlib/types/message_content/video.rb', line 11

def video
  @video
end