§
    «eîi!  ã                   óŽ   — d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 ddlmZ ddlmZmZ erdd	lmZ  G d
„ de¦  «        ZdS )zGThis module contains an object that represents a Telegram InputSticker.é    )ÚSequence)ÚTYPE_CHECKING)ÚMaskPosition)ÚTelegramObject)Úparse_sequence_arg)Úparse_file_input)Ú	FileInputÚJSONDict)Ú	InputFilec                   óv   ‡ — e Zd ZdZdZ	 	 dddœdedee         dededz  d	ee         dz  d
e	dz  fˆ fd„Z
ˆ xZS )ÚInputStickera   
    This object describes a sticker to be added to a sticker set.

    .. versionadded:: 20.2

    .. versionchanged:: 21.1
        As of Bot API 7.2, the new argument :paramref:`format` is a required argument, and thus the
        order of the arguments has changed.

    Args:
        sticker (:obj:`str` | :term:`file object` | :class:`~telegram.InputFile` | :obj:`bytes`             | :class:`pathlib.Path`): The
            added sticker. |uploadinputnopath| Animated and video stickers can't be uploaded via
            HTTP URL.
        emoji_list (Sequence[:obj:`str`]): Sequence of
            :tg-const:`telegram.constants.StickerLimit.MIN_STICKER_EMOJI` -
            :tg-const:`telegram.constants.StickerLimit.MAX_STICKER_EMOJI` emoji associated with the
            sticker.
        mask_position (:class:`telegram.MaskPosition`, optional): Position where the mask should be
            placed on faces. For ":tg-const:`telegram.constants.StickerType.MASK`" stickers only.
        keywords (Sequence[:obj:`str`], optional): Sequence of
            0-:tg-const:`telegram.constants.StickerLimit.MAX_SEARCH_KEYWORDS` search keywords
            for the sticker with the total length of up to
            :tg-const:`telegram.constants.StickerLimit.MAX_KEYWORD_LENGTH` characters. For
            ":tg-const:`telegram.constants.StickerType.REGULAR`" and
            ":tg-const:`telegram.constants.StickerType.CUSTOM_EMOJI`" stickers only.
        format (:obj:`str`): Format of the added sticker, must be one of
            :tg-const:`telegram.constants.StickerFormat.STATIC` for a
            ``.WEBP`` or ``.PNG`` image, :tg-const:`telegram.constants.StickerFormat.ANIMATED`
            for a ``.TGS`` animation, :tg-const:`telegram.constants.StickerFormat.VIDEO` for a
            ``.WEBM`` video.

            .. versionadded:: 21.1

    Attributes:
        sticker (:obj:`str` | :class:`telegram.InputFile`): The added sticker.
        emoji_list (tuple[:obj:`str`]): Tuple of
            :tg-const:`telegram.constants.StickerLimit.MIN_STICKER_EMOJI` -
            :tg-const:`telegram.constants.StickerLimit.MAX_STICKER_EMOJI` emoji associated with the
            sticker.
        mask_position (:class:`telegram.MaskPosition`): Optional. Position where the mask should be
            placed on faces. For ":tg-const:`telegram.constants.StickerType.MASK`" stickers only.
        keywords (tuple[:obj:`str`]): Optional. Tuple of
            0-:tg-const:`telegram.constants.StickerLimit.MAX_SEARCH_KEYWORDS` search keywords
            for the sticker with the total length of up to
            :tg-const:`telegram.constants.StickerLimit.MAX_KEYWORD_LENGTH` characters. For
            ":tg-const:`telegram.constants.StickerType.REGULAR`" and
            ":tg-const:`telegram.constants.StickerType.CUSTOM_EMOJI`" stickers only.
            ":tg-const:`telegram.constants.StickerType.CUSTOM_EMOJI`" stickers only.
        format (:obj:`str`): Format of the added sticker, must be one of
            :tg-const:`telegram.constants.StickerFormat.STATIC` for a
            ``.WEBP`` or ``.PNG`` image, :tg-const:`telegram.constants.StickerFormat.ANIMATED`
            for a ``.TGS`` animation, :tg-const:`telegram.constants.StickerFormat.VIDEO` for a
            ``.WEBM`` video.

            .. versionadded:: 21.1
    )Ú
emoji_listÚformatÚkeywordsÚmask_positionÚstickerN©Ú
api_kwargsr   r   r   r   r   r   c                ó  •— t          ¦   «                              |¬¦  «         t          |dd¬¦  «        | _        t	          |¦  «        | _        || _        || _        t	          |¦  «        | _        |  	                    ¦   «          d S )Nr   T)Ú
local_modeÚattach)
ÚsuperÚ__init__r   r   r   r   r   r   r   Ú_freeze)Úselfr   r   r   r   r   r   Ú	__class__s          €ú`/home/div/.hermes/hermes-agent/venv/lib/python3.11/site-packages/telegram/_files/inputsticker.pyr   zInputSticker.__init___   s�   ø€ õ 	‰Œ×Ò JÐÑ/Ô/Ð/õ )9ØØØð)
ñ )
ô )
ˆŒõ
 ,>¸jÑ+IÔ+IˆŒØ!ˆŒØ2?ˆÔÝ);¸HÑ)EÔ)EˆŒà�Š‰Œˆˆˆó    )NN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__r	   r   Ústrr   r
   r   Ú__classcell__)r   s   @r   r   r   "   s¼   ø€ € € € € ð8ð 8ðt Q€Ið .2Ø)-ðð '+ðð ð àðð ˜S”Mðð ð	ð
 $ dÑ*ðð ˜3”- $Ñ&ðð ˜t‘Oðð ð ð ð ð ð ð ð ð r   r   N)r"   Úcollections.abcr   Útypingr   Útelegram._files.stickerr   Útelegram._telegramobjectr   Útelegram._utils.argumentparsingr   Útelegram._utils.filesr   Útelegram._utils.typesr	   r
   Útelegram._files.inputfiler   r   © r   r   ú<module>r/      sê   ðð& NÐ Mà $Ð $Ð $Ð $Ð $Ð $Ø  Ð  Ð  Ð  Ð  Ð  à 0Ð 0Ð 0Ð 0Ð 0Ð 0Ø 3Ð 3Ð 3Ð 3Ð 3Ð 3Ø >Ð >Ð >Ð >Ð >Ð >Ø 2Ð 2Ð 2Ð 2Ð 2Ð 2Ø 5Ð 5Ð 5Ð 5Ð 5Ð 5Ð 5Ð 5àð 4Ø3Ð3Ð3Ð3Ð3Ð3ðUð Uð Uð Uð U�>ñ Uô Uð Uð Uð Ur   