L idZddlZddlmZmZmZddlmZddl m Z ddl m Z ddl mZddlmZdd lmZmZerdd lmZGd d e ZGd deZGddeZy)zSThis module contains an objects that represents a InputProfilePhoto and subclasses.N) TYPE_CHECKINGOptionalUnion) constants)TelegramObject)enum) to_timedelta)parse_file_input) FileInputJSONDict) InputFileceZdZdZej j Z ej jZ dZddde de e ffdZ xZ S)InputProfilePhotoaDThis object describes a profile photo to set. Currently, it can be one of * :class:`InputProfilePhotoStatic` * :class:`InputProfilePhotoAnimated` .. versionadded:: 22.1 Args: type (:obj:`str`): Type of the profile photo. Attributes: type (:obj:`str`): Type of the profile photo. )typeN api_kwargsrrct||tjtj |||_|jy)Nr)super__init__r get_memberrInputProfilePhotoTyper_freeze)selfrr __class__s g/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/telegram/_files/inputprofilephoto.pyrzInputProfilePhoto.__init__:s9 J/)H)H$PTU  )__name__ __module__ __qualname____doc__rrSTATICANIMATED __slots__strrr r __classcell__rs@rrr#s]  , , 3 3FR..77HTI *.  X&  rrc<eZdZdZdZdddedeeffdZxZ S)InputProfilePhotoStaticaA static profile photo in the .JPG format. .. versionadded:: 22.1 Args: photo (:term:`file object` | :class:`~telegram.InputFile` | :obj:`bytes` | :class:`pathlib.Path`): The static profile photo. |uploadinputnopath| Attributes: type (:obj:`str`): :tg-const:`telegram.constants.InputProfilePhotoType.STATIC`. photo (:class:`telegram.InputFile` | :obj:`str`): The static profile photo. )photoNrr)rct|tjj||j 5t |dd|_dddy#1swYyxYwN)rrT)attach local_mode)rrrrr! _unfrozenr r))rr)rrs rrz InputProfilePhotoStatic.__init__WsY i==DDQ[\ ^^  1Adt1DJ   s AA!) rrrr r#r rr rr%r&s@rr(r(Fs5 I *.  X&  rr(c deZdZdZdZ d dddedeeejdfde e ffdZ xZ S) InputProfilePhotoAnimatedabAn animated profile photo in the MPEG4 format. .. versionadded:: 22.1 Args: animation (:term:`file object` | :class:`~telegram.InputFile` | :obj:`bytes` | :class:`pathlib.Path`): The animated profile photo. |uploadinputnopath| main_frame_timestamp (:class:`datetime.timedelta` | :obj:`int` | :obj:`float`, optional): Timestamp in seconds of the frame that will be used as the static profile photo. Defaults to ``0.0``. Attributes: type (:obj:`str`): :tg-const:`telegram.constants.InputProfilePhotoType.ANIMATED`. animation (:class:`telegram.InputFile` | :obj:`str`): The animated profile photo. main_frame_timestamp (:class:`datetime.timedelta`): Optional. Timestamp in seconds of the frame that will be used as the static profile photo. Defaults to ``0.0``. ) animationmain_frame_timestampNrr1r2rct|tjj||j 5t |dd|_t||_ dddy#1swYyxYwr+) rrrrr"r.r r1r r2)rr1r2rrs rrz"InputProfilePhotoAnimated.__init__{so i==FFS]^ ^^  d5E$45DNBNNbAcD % d d ds $A((A1)N)rrrr r#r rfloatdtm timedeltarr rr%r&s@rr0r0fsa$6I CGd *. dd$E3==$$>?d X& ddrr0)r datetimer5typingrrrtelegramrtelegram._telegramobjectrtelegram._utilsrtelegram._utils.argumentparsingr telegram._utils.filesr telegram._utils.typesr r r rr(r0rrr@sV&Z113 825"  F/@$d 1$dr