class Tourmaline::StickerSet
- Tourmaline::StickerSet
- Reference
- Object
Overview
This object represents a sticker set.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(name : String, title : String, sticker_type : String, stickers : Array(Tourmaline::Sticker) = [] of Tourmaline::Sticker, thumbnail : Tourmaline::PhotoSize | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#name : String
Sticker set name
-
#name=(name : String)
Sticker set name
-
#sticker_type : String
Type of stickers in the set, currently one of "regular", "mask", "custom_emoji"
-
#sticker_type=(sticker_type : String)
Type of stickers in the set, currently one of "regular", "mask", "custom_emoji"
-
#stickers : Array(Tourmaline::Sticker)
List of all set stickers
-
#stickers=(stickers : Array(Tourmaline::Sticker))
List of all set stickers
-
#thumbnail : Tourmaline::PhotoSize | Nil
Optional.
-
#thumbnail=(thumbnail : Tourmaline::PhotoSize | Nil)
Optional.
-
#title : String
Sticker set title
-
#title=(title : String)
Sticker set title
Constructor Detail
def self.new(name : String, title : String, sticker_type : String, stickers : Array(Tourmaline::Sticker) = [] of Tourmaline::Sticker, thumbnail : Tourmaline::PhotoSize | Nil = nil)
#
Instance Method Detail
def sticker_type : String
#
Type of stickers in the set, currently one of "regular", "mask", "custom_emoji"
def sticker_type=(sticker_type : String)
#
Type of stickers in the set, currently one of "regular", "mask", "custom_emoji"
def thumbnail : Tourmaline::PhotoSize | Nil
#
Optional. Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format
def thumbnail=(thumbnail : Tourmaline::PhotoSize | Nil)
#
Optional. Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format