Class: TD::Types::Sticker

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/sticker.rb

Overview

Describes a sticker.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#emojiTD::Types::String

Emoji corresponding to the sticker.

Returns:

  • (TD::Types::String)

    the current value of emoji



16
17
18
# File 'lib/tdlib/types/sticker.rb', line 16

def emoji
  @emoji
end

#heightInteger

Sticker height; as defined by the sender.

Returns:

  • (Integer)

    the current value of height



16
17
18
# File 'lib/tdlib/types/sticker.rb', line 16

def height
  @height
end

#is_animatedBoolean

True, if the sticker is an animated sticker in TGS format.

Returns:

  • (Boolean)

    the current value of is_animated



16
17
18
# File 'lib/tdlib/types/sticker.rb', line 16

def is_animated
  @is_animated
end

#is_maskBoolean

True, if the sticker is a mask.

Returns:

  • (Boolean)

    the current value of is_mask



16
17
18
# File 'lib/tdlib/types/sticker.rb', line 16

def is_mask
  @is_mask
end

#mask_positionTD::Types::MaskPosition?

Position where the mask should be placed; may be null.

Returns:



16
17
18
# File 'lib/tdlib/types/sticker.rb', line 16

def mask_position
  @mask_position
end

#outlineArray<TD::Types::ClosedVectorPath>?

Sticker’s outline represented as a list of closed vector paths; may be empty. The coordinate system origin is in the upper-left corner.

Returns:



16
17
18
# File 'lib/tdlib/types/sticker.rb', line 16

def outline
  @outline
end

#set_idInteger

The identifier of the sticker set to which the sticker belongs; 0 if none.

Returns:

  • (Integer)

    the current value of set_id



16
17
18
# File 'lib/tdlib/types/sticker.rb', line 16

def set_id
  @set_id
end

#stickerTD::Types::File

File containing the sticker.

Returns:



16
17
18
# File 'lib/tdlib/types/sticker.rb', line 16

def sticker
  @sticker
end

#thumbnailTD::Types::Thumbnail?

Sticker thumbnail in WEBP or JPEG format; may be null.

Returns:



16
17
18
# File 'lib/tdlib/types/sticker.rb', line 16

def thumbnail
  @thumbnail
end

#widthInteger

Sticker width; as defined by the sender.

Returns:

  • (Integer)

    the current value of width



16
17
18
# File 'lib/tdlib/types/sticker.rb', line 16

def width
  @width
end