telegram.StickerSet¶
-
class
telegram.
StickerSet
(name, title, is_animated, contains_masks, stickers, is_video, thumb=None, sticker_type=None, **_kwargs)¶ Bases:
telegram.base.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 13.14:: The parameter
contains_masks
has been depreciated as of Bot API 6.2. Usesticker_type
instead.- Parameters
name (
str
) – Sticker set name.title (
str
) – Sticker set title.is_animated (
bool
) –True
, if the sticker set contains animated stickers.is_video (
bool
) –True
, if the sticker set contains video stickers.New in version 13.11.
contains_masks (
bool
) –True
, if the sticker set contains masks.stickers (List[
telegram.Sticker
]) – List of all set stickers.sticker_type (
str
, optional) –Type of stickers in the set, currently one of
telegram.Sticker.REGULAR
,telegram.Sticker.MASK
,telegram.Sticker.CUSTOM_EMOJI
.New in version 13.14.
thumb (
telegram.PhotoSize
, optional) – Sticker set thumbnail in the.WEBP
,.TGS
, or.WEBM
format.
-
name
¶ Sticker set name.
- Type
str
-
title
¶ Sticker set title.
- Type
str
-
is_animated
¶ True
, if the sticker set contains animated stickers.- Type
bool
-
is_video
¶ True
, if the sticker set contains video stickers.New in version 13.11.
- Type
bool
-
contains_masks
¶ True
, if the sticker set contains masks.- Type
bool
-
stickers
¶ List of all set stickers.
- Type
List[
telegram.Sticker
]
-
sticker_type
¶ Optional. Type of stickers in the set.
New in version 13.14.
- Type
str
-
thumb
¶ Optional. Sticker set thumbnail in the
.WEBP
,.TGS
or.WEBM
format.- Type
-
classmethod
de_json
(data, bot)¶
-
to_dict
()¶