from __future__ import annotations
from typing import TYPE_CHECKING, Any, List, Optional
from pydantic import Field
from .base import TelegramObject
if TYPE_CHECKING:
from .photo_size import PhotoSize
from .sticker import Sticker
[docs]
class StickerSet(TelegramObject):
"""
This object represents a sticker set.
Source: https://core.telegram.org/bots/api#stickerset
"""
name: str
"""Sticker set name"""
title: str
"""Sticker set title"""
sticker_type: str
"""Type of stickers in the set, currently one of 'regular', 'mask', 'custom_emoji'"""
stickers: List[Sticker]
"""List of all set stickers"""
thumbnail: Optional[PhotoSize] = None
"""*Optional*. Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format"""
is_animated: Optional[bool] = Field(None, json_schema_extra={"deprecated": True})
""":code:`True`, if the sticker set contains `animated stickers <https://telegram.org/blog/animated-stickers>`_
.. deprecated:: API:7.2
https://core.telegram.org/bots/api-changelog#march-31-2024"""
is_video: Optional[bool] = Field(None, json_schema_extra={"deprecated": True})
""":code:`True`, if the sticker set contains `video stickers <https://telegram.org/blog/video-stickers-better-reactions>`_
.. deprecated:: API:7.2
https://core.telegram.org/bots/api-changelog#march-31-2024"""
if TYPE_CHECKING:
# DO NOT EDIT MANUALLY!!!
# This section was auto-generated via `butcher`
def __init__(
__pydantic__self__,
*,
name: str,
title: str,
sticker_type: str,
stickers: List[Sticker],
thumbnail: Optional[PhotoSize] = None,
is_animated: Optional[bool] = None,
is_video: Optional[bool] = None,
**__pydantic_kwargs: Any,
) -> None:
# DO NOT EDIT MANUALLY!!!
# This method was auto-generated via `butcher`
# Is needed only for type checking and IDE support without any additional plugins
super().__init__(
name=name,
title=title,
sticker_type=sticker_type,
stickers=stickers,
thumbnail=thumbnail,
is_animated=is_animated,
is_video=is_video,
**__pydantic_kwargs,
)