Class: TD::Types::InputMessageContent::Video

Inherits:
TD::Types::InputMessageContent show all
Defined in:
lib/tdlib/types/input_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

#added_sticker_file_idsArray<Integer>

File identifiers of the stickers added to the video, if applicable.

Returns:

  • (Array<Integer>)

    the current value of added_sticker_file_ids



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

def added_sticker_file_ids
  @added_sticker_file_ids
end

#captionTD::Types::FormattedText

Video caption; pass null to use an empty caption; 0-getOption(“message_caption_length_max”) characters.

Returns:



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

def caption
  @caption
end

#durationInteger

Duration of the video, in seconds.

Returns:

  • (Integer)

    the current value of duration



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

def duration
  @duration
end

#has_spoilerBoolean

True, if the video preview must be covered by a spoiler animation; not supported in secret chats.

Returns:

  • (Boolean)

    the current value of has_spoiler



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

def has_spoiler
  @has_spoiler
end

#heightInteger

Video height.

Returns:

  • (Integer)

    the current value of height



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

def height
  @height
end

#self_destruct_typeTD::Types::MessageSelfDestructType

Video self-destruct type; pass null if none; private chats only.

Returns:



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

def self_destruct_type
  @self_destruct_type
end

#show_caption_above_mediaBoolean

True, if the caption must be shown above the video; otherwise, the caption must be shown below the video; not supported in secret chats.

Returns:

  • (Boolean)

    the current value of show_caption_above_media



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

def show_caption_above_media
  @show_caption_above_media
end

#supports_streamingBoolean

True, if the video is supposed to be streamed.

Returns:

  • (Boolean)

    the current value of supports_streaming



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

def supports_streaming
  @supports_streaming
end

#thumbnailTD::Types::InputThumbnail

Video thumbnail; pass null to skip thumbnail uploading.

Returns:



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

def thumbnail
  @thumbnail
end

#videoTD::Types::InputFile

Video to be sent.

Returns:



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

def video
  @video
end

#widthInteger

Video width.

Returns:

  • (Integer)

    the current value of width



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

def width
  @width
end