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 ⇒ TD::Types::String
Original name of the file; as defined by the sender.
-
#has_stickers ⇒ Boolean
True, if stickers were added to the animation.
-
#height ⇒ Integer
Height of the animation.
-
#mime_type ⇒ TD::Types::String
MIME type of the file, usually “image/gif” or “video/mp4”.
-
#minithumbnail ⇒ TD::Types::Minithumbnail?
Animation minithumbnail; may be null.
-
#thumbnail ⇒ TD::Types::Thumbnail?
Animation thumbnail in JPEG or MPEG4 format; 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.
15 16 17 |
# File 'lib/tdlib/types/animation.rb', line 15 def animation @animation end |
#duration ⇒ Integer
Duration of the animation, in seconds; as defined by the sender.
15 16 17 |
# File 'lib/tdlib/types/animation.rb', line 15 def duration @duration end |
#file_name ⇒ TD::Types::String
Original name of the file; as defined by the sender.
15 16 17 |
# File 'lib/tdlib/types/animation.rb', line 15 def file_name @file_name end |
#has_stickers ⇒ Boolean
True, if stickers were added to the animation. The list of corresponding sticker set can be received using getAttachedStickerSets.
15 16 17 |
# File 'lib/tdlib/types/animation.rb', line 15 def has_stickers @has_stickers end |
#height ⇒ Integer
Height of the animation.
15 16 17 |
# File 'lib/tdlib/types/animation.rb', line 15 def height @height end |
#mime_type ⇒ TD::Types::String
MIME type of the file, usually “image/gif” or “video/mp4”.
15 16 17 |
# File 'lib/tdlib/types/animation.rb', line 15 def mime_type @mime_type end |
#minithumbnail ⇒ TD::Types::Minithumbnail?
Animation minithumbnail; may be null.
15 16 17 |
# File 'lib/tdlib/types/animation.rb', line 15 def minithumbnail @minithumbnail end |
#thumbnail ⇒ TD::Types::Thumbnail?
Animation thumbnail in JPEG or MPEG4 format; may be null.
15 16 17 |
# File 'lib/tdlib/types/animation.rb', line 15 def thumbnail @thumbnail end |
#width ⇒ Integer
Width of the animation.
15 16 17 |
# File 'lib/tdlib/types/animation.rb', line 15 def width @width end |