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:



15
16
17
# File 'lib/tdlib/types/animation.rb', line 15

def animation
  @animation
end

#durationInteger

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

Returns:

  • (Integer)

    the current value of duration



15
16
17
# File 'lib/tdlib/types/animation.rb', line 15

def duration
  @duration
end

#file_nameTD::Types::String

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

Returns:

  • (TD::Types::String)

    the current value of file_name



15
16
17
# File 'lib/tdlib/types/animation.rb', line 15

def file_name
  @file_name
end

#has_stickersBoolean

True, if stickers were added to the animation. The list of corresponding sticker set can be received using getAttachedStickerSets.

Returns:

  • (Boolean)

    the current value of has_stickers



15
16
17
# File 'lib/tdlib/types/animation.rb', line 15

def has_stickers
  @has_stickers
end

#heightInteger

Height of the animation.

Returns:

  • (Integer)

    the current value of height



15
16
17
# File 'lib/tdlib/types/animation.rb', line 15

def height
  @height
end

#mime_typeTD::Types::String

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

Returns:

  • (TD::Types::String)

    the current value of mime_type



15
16
17
# File 'lib/tdlib/types/animation.rb', line 15

def mime_type
  @mime_type
end

#minithumbnailTD::Types::Minithumbnail?

Animation minithumbnail; may be null.

Returns:



15
16
17
# File 'lib/tdlib/types/animation.rb', line 15

def minithumbnail
  @minithumbnail
end

#thumbnailTD::Types::Thumbnail?

Animation thumbnail in JPEG or MPEG4 format; may be null.

Returns:



15
16
17
# File 'lib/tdlib/types/animation.rb', line 15

def thumbnail
  @thumbnail
end

#widthInteger

Width of the animation.

Returns:

  • (Integer)

    the current value of width



15
16
17
# File 'lib/tdlib/types/animation.rb', line 15

def width
  @width
end