Class: TD::Types::Animation
- 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
-
#animation ⇒ TD::Types::File
File containing the animation.
-
#duration ⇒ Integer
Duration of the animation, in seconds; as defined by the sender.
-
#file_name ⇒ String
Original name of the file; as defined by the sender.
-
#height ⇒ Integer
Height of the animation.
-
#mime_type ⇒ String
MIME type of the file, usually "image/gif" or "video/mp4".
-
#minithumbnail ⇒ TD::Types::Minithumbnail?
Animation minithumbnail; may be null.
-
#thumbnail ⇒ TD::Types::PhotoSize?
Animation thumbnail; may be null.
-
#width ⇒ Integer
Width of the animation.
Method Summary
Methods inherited from Base
Instance Attribute Details
#animation ⇒ TD::Types::File
File containing the animation.
13 14 15 |
# File 'lib/tdlib/types/animation.rb', line 13 def animation @animation end |
#duration ⇒ Integer
Duration of the animation, in seconds; as defined by the sender.
13 14 15 |
# File 'lib/tdlib/types/animation.rb', line 13 def duration @duration end |
#file_name ⇒ String
Original name of the file; as defined by the sender.
13 14 15 |
# File 'lib/tdlib/types/animation.rb', line 13 def file_name @file_name end |
#height ⇒ Integer
Height of the animation.
13 14 15 |
# File 'lib/tdlib/types/animation.rb', line 13 def height @height end |
#mime_type ⇒ String
MIME type of the file, usually "image/gif" or "video/mp4".
13 14 15 |
# File 'lib/tdlib/types/animation.rb', line 13 def mime_type @mime_type end |
#minithumbnail ⇒ TD::Types::Minithumbnail?
Animation minithumbnail; may be null.
13 14 15 |
# File 'lib/tdlib/types/animation.rb', line 13 def minithumbnail @minithumbnail end |
#thumbnail ⇒ TD::Types::PhotoSize?
Animation thumbnail; may be null.
13 14 15 |
# File 'lib/tdlib/types/animation.rb', line 13 def thumbnail @thumbnail end |
#width ⇒ Integer
Width of the animation.
13 14 15 |
# File 'lib/tdlib/types/animation.rb', line 13 def width @width end |