L iDdZddlmZddlmZmZmZddlmZddl m Z ddl m Z ddl mZddlmZmZerdd lmZGd d e Zy ) zGThis module contains an object that represents a Telegram InputSticker.)Sequence) TYPE_CHECKINGOptionalUnion) MaskPosition)TelegramObject)parse_sequence_arg)parse_file_input) FileInputJSONDict) InputFilecjeZdZdZdZ d dddedeededee d eeed ee f fd Z xZ 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_listformatkeywords mask_positionstickerN api_kwargsrrrrrrct||t|dd|_t ||_||_||_t ||_|jy)NrT) local_modeattach) super__init__r rr rrrr_freeze)selfrrrrrr __class__s b/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/telegram/_files/inputsticker.pyrzInputSticker.__init___s^ J//? /  ,>j+I! 5B);H)E  )NN) __name__ __module__ __qualname____doc__ __slots__r rstrrrr r __classcell__)rs@rrr"s~8tQI15,0 *.SM   -  8C=) X&r rN)r$collections.abcrtypingrrrtelegram._files.stickerrtelegram._telegramobjectrtelegram._utils.argumentparsingr telegram._utils.filesr telegram._utils.typesr r telegram._files.inputfiler rr rr1s7&N$1103>253U>Ur