Class: TD::Types::InputMessageContent::Animation

Inherits:
TD::Types::InputMessageContent show all
Defined in:
lib/tdlib/types/input_message_content/animation.rb

Overview

An animation message (GIF-style)..

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#animationTD::Types::InputFile

Animation file to be sent.

Returns:



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

def animation
  @animation
end

#captionTD::Types::FormattedText

Animation caption; 0-GetOption("message_caption_length_max") characters.

Returns:



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

def caption
  @caption
end

#durationInteger

Duration of the animation, in seconds.

Returns:

  • (Integer)

    the current value of duration



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

def duration
  @duration
end

#heightInteger

Height of the animation; may be replaced by the server.

Returns:

  • (Integer)

    the current value of height



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

def height
  @height
end

#thumbnailTD::Types::InputThumbnail?

Animation thumbnail, if available.

Returns:



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

def thumbnail
  @thumbnail
end

#widthInteger

Width of the animation; may be replaced by the server.

Returns:

  • (Integer)

    the current value of width



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

def width
  @width
end