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

#emojiString

Emoji corresponding to the sticker.

Returns:

  • (String)

    the current value of emoji



13
14
15
# File 'lib/tdlib/types/sticker.rb', line 13

def emoji
  @emoji
end

#heightInteger

Sticker height; as defined by the sender.

Returns:

  • (Integer)

    the current value of height



13
14
15
# File 'lib/tdlib/types/sticker.rb', line 13

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



13
14
15
# File 'lib/tdlib/types/sticker.rb', line 13

def is_animated
  @is_animated
end

#is_maskBoolean

True, if the sticker is a mask.

Returns:

  • (Boolean)

    the current value of is_mask



13
14
15
# File 'lib/tdlib/types/sticker.rb', line 13

def is_mask
  @is_mask
end

#mask_positionTD::Types::MaskPosition?

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

Returns:



13
14
15
# File 'lib/tdlib/types/sticker.rb', line 13

def mask_position
  @mask_position
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



13
14
15
# File 'lib/tdlib/types/sticker.rb', line 13

def set_id
  @set_id
end

#stickerTD::Types::File

File containing the sticker.

Returns:



13
14
15
# File 'lib/tdlib/types/sticker.rb', line 13

def sticker
  @sticker
end

#thumbnailTD::Types::PhotoSize?

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

Returns:



13
14
15
# File 'lib/tdlib/types/sticker.rb', line 13

def thumbnail
  @thumbnail
end

#widthInteger

Sticker width; as defined by the sender.

Returns:

  • (Integer)

    the current value of width



13
14
15
# File 'lib/tdlib/types/sticker.rb', line 13

def width
  @width
end