Skip to content

class Tourmaline::StickerSet
inherits Reference #

This object represents a sticker set.

Included modules

JSON::Serializable

Constructors#

.new(name, title, sticker_type, is_animated, is_video, stickers : Array(Tourmaline::Sticker) = [] of Tourmaline::Sticker, thumbnail : Tourmaline::PhotoSize? = nil) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#is_animated=(is_animated : Bool) #

True, if the sticker set contains animated stickers

View source

#is_animated? : Bool #

True, if the sticker set contains animated stickers

View source

#is_video=(is_video : Bool) #

True, if the sticker set contains video stickers

View source

#is_video? : Bool #

True, if the sticker set contains video stickers

View source

#name : String #

Sticker set name

View source

#name=(name : String) #

Sticker set name

View source

#sticker_type : String #

Type of stickers in the set, currently one of "regular", "mask", "custom_emoji"

View source

#sticker_type=(sticker_type : String) #

Type of stickers in the set, currently one of "regular", "mask", "custom_emoji"

View source

#stickers : Array(Tourmaline::Sticker) #

List of all set stickers

View source

#stickers=(stickers : Array(Tourmaline::Sticker)) #

List of all set stickers

View source

#thumbnail : Tourmaline::PhotoSize? #

Optional. Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format

View source

#thumbnail=(thumbnail : Tourmaline::PhotoSize?) #

Optional. Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format

View source

#title : String #

Sticker set title

View source

#title=(title : String) #

Sticker set title

View source