Class: TD::Types::Sticker
- Defined in:
- lib/tdlib/types/sticker.rb
Overview
Describes a sticker.
Instance Attribute Summary collapse
-
#emoji ⇒ TD::Types::String
Emoji corresponding to the sticker.
-
#height ⇒ Integer
Sticker height; as defined by the sender.
-
#is_animated ⇒ Boolean
True, if the sticker is an animated sticker in TGS format.
-
#is_mask ⇒ Boolean
True, if the sticker is a mask.
-
#mask_position ⇒ TD::Types::MaskPosition?
Position where the mask should be placed; may be null.
-
#outline ⇒ Array<TD::Types::ClosedVectorPath>?
Sticker’s outline represented as a list of closed vector paths; may be empty.
-
#set_id ⇒ Integer
The identifier of the sticker set to which the sticker belongs; 0 if none.
-
#sticker ⇒ TD::Types::File
File containing the sticker.
-
#thumbnail ⇒ TD::Types::Thumbnail?
Sticker thumbnail in WEBP or JPEG format; may be null.
-
#width ⇒ Integer
Sticker width; as defined by the sender.
Method Summary
Methods inherited from Base
Instance Attribute Details
#emoji ⇒ TD::Types::String
Emoji corresponding to the sticker.
16 17 18 |
# File 'lib/tdlib/types/sticker.rb', line 16 def emoji @emoji end |
#height ⇒ Integer
Sticker height; as defined by the sender.
16 17 18 |
# File 'lib/tdlib/types/sticker.rb', line 16 def height @height end |
#is_animated ⇒ Boolean
True, if the sticker is an animated sticker in TGS format.
16 17 18 |
# File 'lib/tdlib/types/sticker.rb', line 16 def is_animated @is_animated end |
#is_mask ⇒ Boolean
True, if the sticker is a mask.
16 17 18 |
# File 'lib/tdlib/types/sticker.rb', line 16 def is_mask @is_mask end |
#mask_position ⇒ TD::Types::MaskPosition?
Position where the mask should be placed; may be null.
16 17 18 |
# File 'lib/tdlib/types/sticker.rb', line 16 def mask_position @mask_position end |
#outline ⇒ Array<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.
16 17 18 |
# File 'lib/tdlib/types/sticker.rb', line 16 def outline @outline end |
#set_id ⇒ Integer
The identifier of the sticker set to which the sticker belongs; 0 if none.
16 17 18 |
# File 'lib/tdlib/types/sticker.rb', line 16 def set_id @set_id end |
#sticker ⇒ TD::Types::File
File containing the sticker.
16 17 18 |
# File 'lib/tdlib/types/sticker.rb', line 16 def sticker @sticker end |
#thumbnail ⇒ TD::Types::Thumbnail?
Sticker thumbnail in WEBP or JPEG format; may be null.
16 17 18 |
# File 'lib/tdlib/types/sticker.rb', line 16 def thumbnail @thumbnail end |
#width ⇒ Integer
Sticker width; as defined by the sender.
16 17 18 |
# File 'lib/tdlib/types/sticker.rb', line 16 def width @width end |