Class: TD::Types::VideoNote

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/video_note.rb

Overview

Describes a video note. The video must be equal in width and height, cropped to a circle, and stored in MPEG4 format.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#durationInteger

Duration of the video, in seconds; as defined by the sender.

Returns:

  • (Integer)

    the current value of duration



10
11
12
# File 'lib/tdlib/types/video_note.rb', line 10

def duration
  @duration
end

#lengthInteger

Video width and height; as defined by the sender.

Returns:

  • (Integer)

    the current value of length



10
11
12
# File 'lib/tdlib/types/video_note.rb', line 10

def length
  @length
end

#minithumbnailTD::Types::Minithumbnail?

Video minithumbnail; may be null.

Returns:



10
11
12
# File 'lib/tdlib/types/video_note.rb', line 10

def minithumbnail
  @minithumbnail
end

#thumbnailTD::Types::Thumbnail?

Video thumbnail in JPEG format; as defined by the sender; may be null.

Returns:



10
11
12
# File 'lib/tdlib/types/video_note.rb', line 10

def thumbnail
  @thumbnail
end

#videoTD::Types::File

File containing the video.

Returns:



10
11
12
# File 'lib/tdlib/types/video_note.rb', line 10

def video
  @video
end