Sha256: cfec305c446668a948929614a55c3fc461f74e11ac8bbc7f193c2ff5b47a8caf

Contents?: true

Size: 1.21 KB

Versions: 2

Compression:

Stored size: 1.21 KB

Contents

module TD::Types
  # Describes a sticker.
  #
  # @attr set_id [Integer] The identifier of the sticker set to which the sticker belongs; 0 if none.
  # @attr width [Integer] Sticker width; as defined by the sender.
  # @attr height [Integer] Sticker height; as defined by the sender.
  # @attr emoji [String] Emoji corresponding to the sticker.
  # @attr is_animated [Boolean] True, if the sticker is an animated sticker in TGS format.
  # @attr is_mask [Boolean] True, if the sticker is a mask.
  # @attr mask_position [TD::Types::MaskPosition, nil] Position where the mask should be placed; may be null.
  # @attr thumbnail [TD::Types::PhotoSize, nil] Sticker thumbnail in WEBP or JPEG format; may be null.
  # @attr sticker [TD::Types::File] File containing the sticker.
  class Sticker < Base
    attribute :set_id, TD::Types::Integer
    attribute :width, TD::Types::Integer
    attribute :height, TD::Types::Integer
    attribute :emoji, TD::Types::String
    attribute :is_animated, TD::Types::Bool
    attribute :is_mask, TD::Types::Bool
    attribute :mask_position, TD::Types::MaskPosition.optional.default(nil)
    attribute :thumbnail, TD::Types::PhotoSize.optional.default(nil)
    attribute :sticker, TD::Types::File
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tdlib-ruby-2.2.0 lib/tdlib/types/sticker.rb
tdlib-ruby-2.1.0 lib/tdlib/types/sticker.rb