class Tourmaline::StickerSet

Overview

This object represents a sticker set.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, title : String, sticker_type : String, is_animated : Bool, is_video : Bool, stickers : Array(Tourmaline::Sticker) = [] of Tourmaline::Sticker, thumbnail : Tourmaline::PhotoSize | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def is_animated=(is_animated : Bool) #

True, if the sticker set contains animated stickers


[View source]
def is_animated? : Bool #

True, if the sticker set contains animated stickers


[View source]
def is_video=(is_video : Bool) #

True, if the sticker set contains video stickers


[View source]
def is_video? : Bool #

True, if the sticker set contains video stickers


[View source]
def name : String #

Sticker set name


[View source]
def name=(name : String) #

Sticker set name


[View source]
def sticker_type : String #

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


[View source]
def sticker_type=(sticker_type : String) #

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


[View source]
def stickers : Array(Tourmaline::Sticker) #

List of all set stickers


[View source]
def stickers=(stickers : Array(Tourmaline::Sticker)) #

List of all set stickers


[View source]
def thumbnail : Tourmaline::PhotoSize | Nil #

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


[View source]
def thumbnail=(thumbnail : Tourmaline::PhotoSize | Nil) #

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


[View source]
def title : String #

Sticker set title


[View source]
def title=(title : String) #

Sticker set title


[View source]