StickerSet¶
- class telegram.StickerSet(name, title, stickers, sticker_type, thumbnail=None, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObjectThis 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
nameis equal.Note
As of v13.11
is_videois 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.Returned In
Changed in version 20.0: The parameter
contains_maskshas been removed. Usesticker_typeinstead.Changed in version 21.1: The parameters
is_videoandis_animatedare deprecated and now made optional. Thus, the order of the arguments had to be changed.Changed in version 20.5: Removed the deprecated argument and attribute
thumb.Removed in version 21.2: Removed the deprecated arguments and attributes
is_animatedandis_video.- Parameters:
name (
str) – Sticker set name.title (
str) – Sticker set title.stickers (Sequence[
telegram.Sticker]) –List of all set stickers.
Changed in version 20.0: Accepts any
collections.abc.Sequenceas input instead of just a list. The input is converted to a tuple.sticker_type (
str) –Type of stickers in the set, currently one of
telegram.Sticker.REGULAR,telegram.Sticker.MASK,telegram.Sticker.CUSTOM_EMOJI.Added in version 20.0.
thumbnail (
telegram.PhotoSize, optional) –Sticker set thumbnail in the
.WEBP,.TGS, or.WEBMformat.Added in version 20.2.
- 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, currently one of
telegram.Sticker.REGULAR,telegram.Sticker.MASK,telegram.Sticker.CUSTOM_EMOJI.Added in version 20.0.
- Type:
str
- thumbnail[source]¶
Optional. Sticker set thumbnail in the
.WEBP,.TGS, or.WEBMformat.Added in version 20.2.
- Type: