telegram.StickerSet
- class telegram.StickerSet(name, title, is_animated, contains_masks, stickers, is_video, thumb=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.- 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.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
]
- thumb
Optional. Sticker set thumbnail in the
.WEBP
,.TGS
or.WEBM
format.- Type
- classmethod de_json(data, bot)
- to_dict()