Class: TD::Types::Animation

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

Overview

Describes an animation file. The animation must be encoded in GIF or MPEG4 format.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#animationTD::Types::File

File containing the animation.

Returns:



13
14
15
# File 'lib/tdlib/types/animation.rb', line 13

def animation
  @animation
end

#durationInteger

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

Returns:

  • (Integer)

    the current value of duration



13
14
15
# File 'lib/tdlib/types/animation.rb', line 13

def duration
  @duration
end

#file_nameString

Original name of the file; as defined by the sender.

Returns:

  • (String)

    the current value of file_name



13
14
15
# File 'lib/tdlib/types/animation.rb', line 13

def file_name
  @file_name
end

#heightInteger

Height of the animation.

Returns:

  • (Integer)

    the current value of height



13
14
15
# File 'lib/tdlib/types/animation.rb', line 13

def height
  @height
end

#mime_typeString

MIME type of the file, usually "image/gif" or "video/mp4".

Returns:

  • (String)

    the current value of mime_type



13
14
15
# File 'lib/tdlib/types/animation.rb', line 13

def mime_type
  @mime_type
end

#minithumbnailTD::Types::Minithumbnail?

Animation minithumbnail; may be null.

Returns:



13
14
15
# File 'lib/tdlib/types/animation.rb', line 13

def minithumbnail
  @minithumbnail
end

#thumbnailTD::Types::PhotoSize?

Animation thumbnail; may be null.

Returns:



13
14
15
# File 'lib/tdlib/types/animation.rb', line 13

def thumbnail
  @thumbnail
end

#widthInteger

Width of the animation.

Returns:

  • (Integer)

    the current value of width



13
14
15
# File 'lib/tdlib/types/animation.rb', line 13

def width
  @width
end