Sha256: 6ae529ce3031d37afe773217deb5f765b1cd8c2f919a5bfd11be9f21f6468c6d
Contents?: true
Size: 1.42 KB
Versions: 3
Compression:
Stored size: 1.42 KB
Contents
module TD::Types # Describes an animation file. # The animation must be encoded in GIF or MPEG4 format. # # @attr duration [Integer] Duration of the animation, in seconds; as defined by the sender. # @attr width [Integer] Width of the animation. # @attr height [Integer] Height of the animation. # @attr file_name [TD::Types::String] Original name of the file; as defined by the sender. # @attr mime_type [TD::Types::String] MIME type of the file, usually "image/gif" or "video/mp4". # @attr has_stickers [Boolean] True, if stickers were added to the animation. # The list of corresponding sticker set can be received using getAttachedStickerSets. # @attr minithumbnail [TD::Types::Minithumbnail, nil] Animation minithumbnail; may be null. # @attr thumbnail [TD::Types::Thumbnail, nil] Animation thumbnail in JPEG or MPEG4 format; may be null. # @attr animation [TD::Types::File] File containing the animation. class Animation < Base attribute :duration, TD::Types::Coercible::Integer attribute :width, TD::Types::Coercible::Integer attribute :height, TD::Types::Coercible::Integer attribute :file_name, TD::Types::String attribute :mime_type, TD::Types::String attribute :has_stickers, TD::Types::Bool attribute :minithumbnail, TD::Types::Minithumbnail.optional.default(nil) attribute :thumbnail, TD::Types::Thumbnail.optional.default(nil) attribute :animation, TD::Types::File end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tdlib-schema-1.7.0.4 | lib/tdlib/types/animation.rb |
tdlib-schema-1.7.0.3 | lib/tdlib/types/animation.rb |
tdlib-schema-1.7.0.2 | lib/tdlib/types/animation.rb |