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

#added_sticker_file_idsArray<Integer>

File identifiers of the stickers added to the animation, if applicable.

Returns:

  • (Array<Integer>)

    the current value of added_sticker_file_ids



17
18
19
# File 'lib/tdlib/types/input_message_content/animation.rb', line 17

def added_sticker_file_ids
  @added_sticker_file_ids
end

#animationTD::Types::InputFile

Animation file to be sent.

Returns:



17
18
19
# File 'lib/tdlib/types/input_message_content/animation.rb', line 17

def animation
  @animation
end

#captionTD::Types::FormattedText

Animation caption; pass null to use an empty caption; 0-getOption(“message_caption_length_max”) characters.

Returns:



17
18
19
# File 'lib/tdlib/types/input_message_content/animation.rb', line 17

def caption
  @caption
end

#durationInteger

Duration of the animation, in seconds.

Returns:

  • (Integer)

    the current value of duration



17
18
19
# File 'lib/tdlib/types/input_message_content/animation.rb', line 17

def duration
  @duration
end

#has_spoilerBoolean

True, if the animation preview must be covered by a spoiler animation; not supported in secret chats.

Returns:

  • (Boolean)

    the current value of has_spoiler



17
18
19
# File 'lib/tdlib/types/input_message_content/animation.rb', line 17

def has_spoiler
  @has_spoiler
end

#heightInteger

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

Returns:

  • (Integer)

    the current value of height



17
18
19
# File 'lib/tdlib/types/input_message_content/animation.rb', line 17

def height
  @height
end

#show_caption_above_mediaBoolean

True, if the caption must be shown above the animation; otherwise, the caption must be shown below the animation; not supported in secret chats.

Returns:

  • (Boolean)

    the current value of show_caption_above_media



17
18
19
# File 'lib/tdlib/types/input_message_content/animation.rb', line 17

def show_caption_above_media
  @show_caption_above_media
end

#thumbnailTD::Types::InputThumbnail

Animation thumbnail; pass null to skip thumbnail uploading.

Returns:



17
18
19
# File 'lib/tdlib/types/input_message_content/animation.rb', line 17

def thumbnail
  @thumbnail
end

#widthInteger

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

Returns:

  • (Integer)

    the current value of width



17
18
19
# File 'lib/tdlib/types/input_message_content/animation.rb', line 17

def width
  @width
end