telegram.StickerSet

class telegram.StickerSet(name, title, is_animated, stickers, is_video, sticker_type, thumb=None, *, api_kwargs=None)[source]

Bases: telegram.TelegramObject

This object represents a sticker set.

Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their name is equal.

Note

As of v13.11 is_video is a required argument and therefore the order of the arguments had to be changed. Use keyword arguments to make sure that the arguments are passed correctly.

Changed in version 20.0:: The parameter contains_masks has been removed. Use sticker_type instead.

Parameters
name[source]

Sticker set name.

Type

str

title[source]

Sticker set title.

Type

str

is_animated[source]

True, if the sticker set contains animated stickers.

Type

bool

is_video[source]

True, if the sticker set contains video stickers.

New in version 13.11.

Type

bool

stickers[source]

List of all set stickers.

Changed in version 20.0: This attribute is now an immutable tuple.

Type

Tuple[telegram.Sticker]

sticker_type[source]

Type of stickers in the set.

New in version 20.0.

Type

str

thumb[source]

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

Type

telegram.PhotoSize

classmethod de_json(data, bot)[source]

See telegram.TelegramObject.de_json().