+
    ÁFñje  ã                   óL  € R t ^ RIt^ RIHt ^ RIHtHt ^ RIH	t	 ^ RI
Ht ^ RIHt ^ RIHt ^ RIHt ^ R	IHtHt ^ R
IHtHt ^ RIHt ]'       d   ^ RIHt  ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t  ! R R]4      t!R# )z4This module contains classes related to unique gifs.N)ÚSequence)ÚTYPE_CHECKINGÚFinal)Ú	constants)ÚChat)ÚSticker)ÚTelegramObject)Úenum)Úde_json_optionalÚparse_sequence_arg)Úextract_tzinfo_from_defaultsÚfrom_timestamp©ÚJSONDict)ÚBotc                   óN   a a€ ] tR t^'t oRtRtRR/V3R lV 3R llltRtVtV ;t	# )ÚUniqueGiftColorsaÐ  This object contains information about the color scheme for a user's name, message replies
and link previews based on a unique gift.

Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal if their :attr:`model_custom_emoji_id`, :attr:`symbol_custom_emoji_id`,
:attr:`light_theme_main_color`, :attr:`light_theme_other_colors`,
:attr:`dark_theme_main_color`, and :attr:`dark_theme_other_colors` are equal.

.. versionadded:: 22.6

Args:
    model_custom_emoji_id (:obj:`str`): Custom emoji identifier of the unique gift's model.
    symbol_custom_emoji_id (:obj:`str`): Custom emoji identifier of the unique gift's symbol.
    light_theme_main_color (:obj:`int`): Main color used in light themes; RGB format.
    light_theme_other_colors (Sequence[:obj:`int`]): List of 1-3 additional colors used in
        light themes; RGB format. |sequenceclassargs|
    dark_theme_main_color (:obj:`int`): Main color used in dark themes; RGB format.
    dark_theme_other_colors (Sequence[:obj:`int`]): List of 1-3 additional colors used in dark
        themes; RGB format. |sequenceclassargs|

Attributes:
    model_custom_emoji_id (:obj:`str`): Custom emoji identifier of the unique gift's model.
    symbol_custom_emoji_id (:obj:`str`): Custom emoji identifier of the unique gift's symbol.
    light_theme_main_color (:obj:`int`): Main color used in light themes; RGB format.
    light_theme_other_colors (Tuple[:obj:`int`]): Tuple of 1-3 additional colors used in
        light themes; RGB format.
    dark_theme_main_color (:obj:`int`): Main color used in dark themes; RGB format.
    dark_theme_other_colors (Tuple[:obj:`int`]): Tuple of 1-3 additional colors used in dark
        themes; RGB format.
Ú
api_kwargsNc                ór   <€ V ^8„  d   QhRS[ RS[ RS[RS[S[,          RS[RS[S[,          RS[R,          /# )	é   Úmodel_custom_emoji_idÚsymbol_custom_emoji_idÚlight_theme_main_colorÚlight_theme_other_colorsÚdark_theme_main_colorÚdark_theme_other_colorsr   N)ÚstrÚintr   r   )ÚformatÚ__classdict__s   "€ÚJ/opt/hermes-site/venv/lib/python3.14/site-packages/telegram/_uniquegift.pyÚ__annotate__ÚUniqueGiftColors.__annotate__P   s]   ø€ ÷ ñ á"ðñ !$ðñ !$ð	ñ
 #+©3¥-ðñ  #ðñ "*©#¥ðñ ˜t•Oñó    c               óJ  <€ \         SV `  VR 7       Wn        W n        W0n        \        V4      V n        WPn        \        V4      V n        V P                  V P                  V P                  V P                  V P                  V P                  3V n	        V P                  4        R# ©)r   N)ÚsuperÚ__init__r   r   r   r   r   r   r   Ú	_id_attrsÚ_freeze)	Úselfr   r   r   r   r   r   r   Ú	__class__s	   &&&&&&&$€r    r'   ÚUniqueGiftColors.__init__P   sš   ø€ ô 	‰Ñ JÐÔ/Ø*?Ô"Ø+AÔ#Ø+AÔ#Ü9KØ$ó:
ˆÔ%ð +@Ô"Ü8JÐKbÓ8cˆÔ$ð ×&Ñ&Ø×'Ñ'Ø×'Ñ'Ø×)Ñ)Ø×&Ñ&Ø×(Ñ(ð
ˆŒð 	�‰Žr#   )r(   r   r   r   r   r   r   )r   r   r   r   r   r   ©
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	__slots__r'   Ú__static_attributes__Ú__classdictcell__Ú__classcell__©r+   r   s   @@r    r   r   '   s*   ù‡ € ñð>€Iðð '+÷÷ õ r#   r   c                   óx   a a€ ] tR t^qt oRtR	tR
RR/V3R lV 3R llllt]R
V3R lV 3R lll4       tRt	Vt
V ;t# )ÚUniqueGiftModela�  This object describes the model of a unique gift.

Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal if their :attr:`name`, :attr:`sticker` and :attr:`rarity_per_mille` are equal.

.. versionadded:: 22.1

Args:
    name (:obj:`str`): Name of the model.
    sticker (:class:`telegram.Sticker`): The sticker that represents the unique gift.
    rarity_per_mille (:obj:`int`): The number of unique gifts that receive this
        model for every ``1000`` gifts upgraded. Always ``0`` for crafted gifts.
    rarity (:obj:`str`, optional): Rarity of the model if it is a crafted model.
        Currently, can be :tg-const:`telegram.constants.UniqueGiftModelRarity.UNCOMMON`,
        :tg-const:`telegram.constants.UniqueGiftModelRarity.RARE`,
        :tg-const:`telegram.constants.UniqueGiftModelRarity.EPIC`,
        or :tg-const:`telegram.constants.UniqueGiftModelRarity.LEGENDARY`.

        .. versionadded:: 22.7

Attributes:
    name (:obj:`str`): Name of the model.
    sticker (:class:`telegram.Sticker`): The sticker that represents the unique gift.
    rarity_per_mille (:obj:`int`): The number of unique gifts that receive this
        model for every ``1000`` gifts upgraded. Always ``0`` for crafted gifts.
    rarity (:obj:`str`): Optional. Rarity of the model if it is a crafted model.
        Currently, can be :tg-const:`telegram.constants.UniqueGiftModelRarity.UNCOMMON`,
        :tg-const:`telegram.constants.UniqueGiftModelRarity.RARE`,
        :tg-const:`telegram.constants.UniqueGiftModelRarity.EPIC`,
        or :tg-const:`telegram.constants.UniqueGiftModelRarity.LEGENDARY`.

        .. versionadded:: 22.7
Nr   c                óT   <€ V ^8„  d   QhRS[ RS[RS[RS[ R,          RS[R,          /# )r   ÚnameÚstickerÚrarity_per_milleÚrarityNr   ©r   r   r   r   )r   r   s   "€r    r!   ÚUniqueGiftModel.__annotate__›   sE   ø€ ÷ ñ áðñ ðñ ð	ñ
 �d•
ðñ ˜t•Oñr#   c               ó  <€ \         SV `  VR 7       Wn        W n        W0n        \
        P                  ! \        P                  WD4      V n	        V P                  V P                  V P                  3V n
        V P                  4        R# r%   )r&   r'   r;   r<   r=   r	   Ú
get_memberr   ÚUniqueGiftModelRarityr>   r(   r)   )r*   r;   r<   r=   r>   r   r+   s   &&&&&$€r    r'   ÚUniqueGiftModel.__init__›   sc   ø€ ô 	‰Ñ JÐÔ/àŒ	Ø 'ŒØ%5Ôä"&§/¢/´)×2QÑ2QÐSYÓ"bˆŒàŸ)™) T§\¡\°4×3HÑ3HÐIˆŒà�‰Žr#   c                ó(   <€ V ^8„  d   QhRS[ RRRR/# )r   ÚdataÚbotú
Bot | NoneÚreturnr9   r   )r   r   s   "€r    r!   r@   ±   s#   ø€ ÷ 3ñ 3™8ð 3¨,ð 3ÐBSñ 3r#   c                óŒ   <€ V P                  V4      p\        VP                  R4      \        V4      VR&   \        SV `  WR7      # ©ú,See :meth:`telegram.TelegramObject.de_json`.r<   ©rF   rG   ©Ú_parse_datar
   Úgetr   r&   Úde_json©ÚclsrF   rG   r+   s   &&&€r    rQ   ÚUniqueGiftModel.de_json°   ó?   ø€ ð �‰˜tÓ$ˆä*¨4¯8©8°IÓ+>ÄÈÓMˆˆY‰ä‰w‰ DˆÓ2Ð2r#   )r(   r;   r>   r=   r<   )r;   r>   r=   r<   ©N©r.   r/   r0   r1   r2   r3   r'   ÚclassmethodrQ   r4   r5   r6   r7   s   @@r    r9   r9   q   sD   ù‡ € ñ ðD€Iñð '+÷ö ð* ÷3ô 3ó ÷3ð 3r#   r9   c                   ót   a a€ ] tR t^ºt oRtR	tRR/V3R lV 3R lllt]R
V3R lV 3R lll4       tRt	Vt
V ;t# )ÚUniqueGiftSymbola3  This object describes the symbol shown on the pattern of a unique gift.

Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal if their :attr:`name`, :attr:`sticker` and :attr:`rarity_per_mille` are equal.

.. versionadded:: 22.1

Args:
    name (:obj:`str`): Name of the symbol.
    sticker (:class:`telegram.Sticker`): The sticker that represents the unique gift.
    rarity_per_mille (:obj:`int`): The number of unique gifts that receive this
        model for every ``1000`` gifts upgraded.

Attributes:
    name (:obj:`str`): Name of the symbol.
    sticker (:class:`telegram.Sticker`): The sticker that represents the unique gift.
    rarity_per_mille (:obj:`int`): The number of unique gifts that receive this
        model for every ``1000`` gifts upgraded.

r   Nc          	      ó@   <€ V ^8„  d   QhRS[ RS[RS[RS[R,          /# )r   r;   r<   r=   r   Nr?   )r   r   s   "€r    r!   ÚUniqueGiftSymbol.__annotate__Ö   s7   ø€ ÷ ñ áðñ ðñ ð	ñ ˜t•Oñr#   c               ó¼   <€ \         SV `  VR 7       Wn        W n        W0n        V P                  V P                  V P                  3V n        V P                  4        R# r%   )r&   r'   r;   r<   r=   r(   r)   )r*   r;   r<   r=   r   r+   s   &&&&$€r    r'   ÚUniqueGiftSymbol.__init__Ö   sJ   ø€ ô 	‰Ñ JÐÔ/ØŒ	Ø 'ŒØ%5ÔàŸ)™) T§\¡\°4×3HÑ3HÐIˆŒà�‰Žr#   c                ó(   <€ V ^8„  d   QhRS[ RRRR/# )r   rF   rG   rH   rI   rZ   r   )r   r   s   "€r    r!   r\   è   s#   ø€ ÷ 3ñ 3™8ð 3¨,ð 3ÐBTñ 3r#   c                óŒ   <€ V P                  V4      p\        VP                  R4      \        V4      VR&   \        SV `  WR7      # rK   rN   rR   s   &&&€r    rQ   ÚUniqueGiftSymbol.de_jsonç   rU   r#   )r(   r;   r=   r<   )r;   r=   r<   rV   rW   r7   s   @@r    rZ   rZ   º   óC   ù‡ € ñð*€Iðð '+÷õ ð" ÷3ô 3ó ÷3ð 3r#   rZ   c                   óN   a a€ ] tR t^ñt oRtRtRR/V3R lV 3R llltRtVtV ;t	# )ÚUniqueGiftBackdropColorsaæ  This object describes the colors of the backdrop of a unique gift.

Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal if their :attr:`center_color`, :attr:`edge_color`, :attr:`symbol_color`,
and :attr:`text_color` are equal.

.. versionadded:: 22.1

Args:
    center_color (:obj:`int`): The color in the center of the backdrop in RGB format.
    edge_color (:obj:`int`): The color on the edges of the backdrop in RGB format.
    symbol_color (:obj:`int`): The color to be applied to the symbol in RGB format.
    text_color (:obj:`int`): The color for the text on the backdrop in RGB format.

Attributes:
    center_color (:obj:`int`): The color in the center of the backdrop in RGB format.
    edge_color (:obj:`int`): The color on the edges of the backdrop in RGB format.
    symbol_color (:obj:`int`): The color to be applied to the symbol in RGB format.
    text_color (:obj:`int`): The color for the text on the backdrop in RGB format.

r   Nc                óF   <€ V ^8„  d   QhRS[ RS[ RS[ RS[ RS[R,          /# )r   Úcenter_colorÚ
edge_colorÚsymbol_colorÚ
text_colorr   N)r   r   )r   r   s   "€r    r!   Ú%UniqueGiftBackdropColors.__annotate__  sA   ø€ ÷ ñ áðñ ðñ ð	ñ
 ðñ ˜t•Oñr#   c               óÞ   <€ \         SV `  VR 7       Wn        W n        W0n        W@n        V P                  V P                  V P                  V P
                  3V n        V P                  4        R# r%   )r&   r'   rf   rg   rh   ri   r(   r)   )r*   rf   rg   rh   ri   r   r+   s   &&&&&$€r    r'   Ú!UniqueGiftBackdropColors.__init__  s[   ø€ ô 	‰Ñ JÐÔ/Ø!-ÔØ)ŒØ!-ÔØ)Œà×+Ñ+¨T¯_©_¸d×>OÑ>OÐQU×Q`ÑQ`ÐaˆŒà�‰Žr#   )r(   rf   rg   rh   ri   )rf   rg   rh   ri   r-   r7   s   @@r    rd   rd   ñ   s*   ù‡ € ñð,€Iðð '+÷÷ õ r#   rd   c                   ót   a a€ ] tR tRt oRtR
tRR/V3R lV 3R lllt]RV3R lV 3R lll4       tR	t	Vt
V ;t# )ÚUniqueGiftBackdropi#  a   This object describes the backdrop of a unique gift.

Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal if their :attr:`name`, :attr:`colors`, and :attr:`rarity_per_mille` are equal.

.. versionadded:: 22.1

Args:
    name (:obj:`str`): Name of the backdrop.
    colors (:class:`telegram.UniqueGiftBackdropColors`): Colors of the backdrop.
    rarity_per_mille (:obj:`int`): The number of unique gifts that receive this backdrop
        for every ``1000`` gifts upgraded.

Attributes:
    name (:obj:`str`): Name of the backdrop.
    colors (:class:`telegram.UniqueGiftBackdropColors`): Colors of the backdrop.
    rarity_per_mille (:obj:`int`): The number of unique gifts that receive this backdrop
        for every ``1000`` gifts upgraded.

r   Nc          	      ó@   <€ V ^8„  d   QhRS[ RS[RS[RS[R,          /# )r   r;   Úcolorsr=   r   N)r   rd   r   r   )r   r   s   "€r    r!   ÚUniqueGiftBackdrop.__annotate__?  s7   ø€ ÷ ñ áðñ )ðñ ð	ñ ˜t•Oñr#   c               ó¼   <€ \         SV `  VR 7       Wn        W n        W0n        V P                  V P                  V P                  3V n        V P                  4        R# r%   )r&   r'   r;   rp   r=   r(   r)   )r*   r;   rp   r=   r   r+   s   &&&&$€r    r'   ÚUniqueGiftBackdrop.__init__?  sJ   ø€ ô 	‰Ñ JÐÔ/ØŒ	Ø06ŒØ%5ÔàŸ)™) T§[¡[°$×2GÑ2GÐHˆŒà�‰Žr#   c                ó(   <€ V ^8„  d   QhRS[ RRRR/# )r   rF   rG   rH   rI   rn   r   )r   r   s   "€r    r!   rq   Q  s#   ø€ ÷ 3ñ 3™8ð 3¨,ð 3ÐBVñ 3r#   c                óŒ   <€ V P                  V4      p\        VP                  R4      \        V4      VR&   \        SV `  WR7      # )rL   rp   rM   )rO   r
   rP   rd   r&   rQ   rR   s   &&&€r    rQ   ÚUniqueGiftBackdrop.de_jsonP  sA   ø€ ð �‰˜tÓ$ˆä)¨$¯(©(°8Ó*<Ô>VÐX[Ó\ˆˆX‰ä‰w‰ DˆÓ2Ð2r#   )r(   rp   r;   r=   )rp   r;   r=   rV   rW   r7   s   @@r    rn   rn   #  rb   r#   rn   c                   óx   a a€ ] tR tRt oRtR
tRRR/V3R lV 3R llllt]RV3R lV 3R lll4       tR	t	Vt
V ;t# )Ú
UniqueGiftiZ  a­  This object describes a unique gift that was upgraded from a regular gift.

Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal if their :attr:`base_name`, :attr:`name`, :attr:`number`, :class:`model`,
:attr:`symbol`, and :attr:`backdrop` are equal.

.. versionadded:: 22.1

.. versionchanged:: 22.7
    :attr:`gift_id` is now a positional argument.

Args:
    gift_id (:obj:`str`): Identifier of the regular gift from which the gift was upgraded.

        .. versionadded:: 22.6
    base_name (:obj:`str`): Human-readable name of the regular gift from which this unique
        gift was upgraded.
    name (:obj:`str`): Unique name of the gift. This name can be used
        in ``https://t.me/nft/...`` links and story areas.
    number (:obj:`int`): Unique number of the upgraded gift among gifts upgraded from the
        same regular gift.
    model (:class:`UniqueGiftModel`): Model of the gift.
    symbol (:class:`UniqueGiftSymbol`): Symbol of the gift.
    backdrop (:class:`UniqueGiftBackdrop`): Backdrop of the gift.
    publisher_chat (:class:`telegram.Chat`, optional): Information about the chat that
        published the gift.

        .. versionadded:: 22.4
    is_premium (:obj:`bool`, optional): :obj:`True`, if the original regular gift was
        exclusively purchaseable by Telegram Premium subscribers.

        .. versionadded:: 22.6
    is_from_blockchain (:obj:`bool`, optional): :obj:`True`, if the gift is assigned from the
        TON blockchain and can't be resold or transferred in Telegram.

        .. versionadded:: 22.6
    colors (:class:`telegram.UniqueGiftColors`, optional): The color scheme that can be used
        by the gift's owner for the chat's name, replies to messages and link previews; for
        business account gifts and gifts that are currently on sale only.

        .. versionadded:: 22.6
    is_burned (:obj:`bool`, optional): :obj:`True`, if the gift was used to craft another
        gift and isn't available anymore.

        .. versionadded:: 22.7

Attributes:
    gift_id (:obj:`str`): Identifier of the regular gift from which the gift was upgraded.

        .. versionadded:: 22.6
    base_name (:obj:`str`): Human-readable name of the regular gift from which this unique
        gift was upgraded.
    name (:obj:`str`): Unique name of the gift. This name can be used
        in ``https://t.me/nft/...`` links and story areas.
    number (:obj:`int`): Unique number of the upgraded gift among gifts upgraded from the
        same regular gift.
    model (:class:`telegram.UniqueGiftModel`): Model of the gift.
    symbol (:class:`telegram.UniqueGiftSymbol`): Symbol of the gift.
    backdrop (:class:`telegram.UniqueGiftBackdrop`): Backdrop of the gift.
    publisher_chat (:class:`telegram.Chat`): Optional. Information about the chat that
        published the gift.

        .. versionadded:: 22.4
    is_premium (:obj:`bool`): Optional. :obj:`True`, if the original regular gift was
        exclusively purchaseable by Telegram Premium subscribers.

        .. versionadded:: 22.6
    is_from_blockchain (:obj:`bool`): Optional. :obj:`True`, if the gift is assigned from the
        TON blockchain and can't be resold or transferred in Telegram.

        .. versionadded:: 22.6
    colors (:class:`telegram.UniqueGiftColors`): Optional. The color scheme that can be used
        by the gift's owner for the chat's name, replies to messages and link previews; for
        business account gifts and gifts that are currently on sale only.

        .. versionadded:: 22.6
    is_burned (:obj:`bool`): Optional. :obj:`True`, if the gift was used to craft another
        gift and isn't available anymore.

        .. versionadded:: 22.7
Nr   c                ó¼   <€ V ^8„  d   QhRS[ RS[ RS[ RS[RS[RS[RS[RS[R	,          R
S[R	,          RS[R	,          RS[R	,          RS[R	,          RS[R	,          /# )r   Úgift_idÚ	base_namer;   ÚnumberÚmodelÚsymbolÚbackdropÚpublisher_chatNÚis_from_blockchainÚ
is_premiumrp   Ú	is_burnedr   )	r   r   r9   rZ   rn   r   Úboolr   r   )r   r   s   "€r    r!   ÚUniqueGift.__annotate__¼  s¦   ø€ ÷ (ñ (áð(ñ ð(ñ ð	(ñ
 ð(ñ ð(ñ !ð(ñ %ð(ñ ˜t�ð(ñ ! 4�Kð(ñ ˜4•Kð(ñ ! 4Õ'ð(ñ ˜$•;ð(ñ ˜t•Oñ(r#   c               ój  <€ \         SV `  VR 7       Wn        W n        W0n        W@n        WPn        W`n        Wpn        W€n	        W�n
        W n        W°n        WÀn        V P                  V P                  V P
                  V P                  V P                  V P                  3V n        V P                  4        R# r%   )r&   r'   rz   r{   r;   r|   r}   r~   r   r€   r�   r‚   rp   rƒ   r(   r)   )r*   rz   r{   r;   r|   r}   r~   r   r€   r�   r‚   rp   rƒ   r   r+   s   &&&&&&&&&&&&&$€r    r'   ÚUniqueGift.__init__¼  s“   ø€ ô" 	‰Ñ JÐÔ/Ø#ŒØ'ŒØŒ	Ø!ŒØ&+Œ
Ø(.ŒØ,4ŒØ+9ÔØ/AÔØ'1ŒØ/5ŒØ&/Œð �N‰NØ�I‰IØ�K‰KØ�J‰JØ�K‰KØ�M‰Mð
ˆŒð 	�‰Žr#   c                ó(   <€ V ^8„  d   QhRS[ RRRR/# )r   rF   rG   rH   rI   rx   r   )r   r   s   "€r    r!   r…   ç  s"   ø€ ÷ 
3ñ 
3™8ð 
3¨,ð 
3À,ñ 
3r#   c                ó¤  <€ V P                  V4      p\        VP                  R4      \        V4      VR&   \        VP                  R4      \        V4      VR&   \        VP                  R4      \
        V4      VR&   \        VP                  R4      \        V4      VR&   \        VP                  R4      \        V4      VR&   \        SV `%  WR7      # )rL   r}   r~   r   r€   rp   rM   )
rO   r
   rP   r9   rZ   rn   r   r   r&   rQ   rR   s   &&&€r    rQ   ÚUniqueGift.de_jsonæ  s¶   ø€ ð �‰˜tÓ$ˆä(¨¯©°'Ó):¼OÈSÓQˆˆW‰Ü)¨$¯(©(°8Ó*<Ô>NÐPSÓTˆˆX‰Ü+¨D¯H©H°ZÓ,@ÔBTÐVYÓZˆˆZÑÜ!1°$·(±(Ð;KÓ2LÌdÐTWÓ!XˆÐÑÜ)¨$¯(©(°8Ó*<Ô>NÐPSÓTˆˆX‰ä‰w‰ DˆÓ2Ð2r#   )r(   r   r{   rp   rz   rƒ   r�   r‚   r}   r;   r|   r€   r~   )r   r{   rp   rz   rƒ   r�   r‚   r}   r;   r|   r€   r~   ©NNNNNrV   rW   r7   s   @@r    rx   rx   Z  sF   ù‡ € ñPðd€Iñ(ð '+÷(ö (ðT ÷
3ô 
3ó ÷
3ð 
3r#   rx   c                   ój  a a€ ] tR tRt oRt]P                  P                  t ]P                  P                  t ]P                  P                  t	 ]P                  P                  t
 ]P                  P                  t RtRRR/V3R lV 3R llllt]RV3R lV 3R lll4       tV3R	 ltR
tVtV ;t# )ÚUniqueGiftInfoiô  aµ  Describes a service message about a unique gift that was sent or received.

Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal if their :attr:`gift`, and :attr:`origin` are equal.

.. versionadded:: 22.1

.. versionremoved:: 22.7
    Removed argument and attribute ``last_resale_star_count`` deprecated since Bot API 9.3.

Args:
    gift (:class:`UniqueGift`): Information about the gift.
    origin (:obj:`str`): Origin of the gift. Currently, either :attr:`UPGRADE` for gifts
        upgraded from regular gifts, :attr:`TRANSFER` for gifts transferred from other users
        or channels, :attr:`RESALE` for gifts bought from other users,
        :attr:`GIFTED_UPGRADE` for upgrades purchased after the gift was sent, or :attr:`OFFER`
        for gifts bought or sold through gift purchase offers

        .. versionchanged:: 22.3
            The :attr:`RESALE` origin was added.
        .. versionchanged:: 22.6
            Bot API 9.3 added the :attr:`GIFTED_UPGRADE` and :attr:`OFFER` origins.
    owned_gift_id (:obj:`str`, optional) Unique identifier of the received gift for the
        bot; only present for gifts received on behalf of business accounts.
    transfer_star_count (:obj:`int`, optional): Number of Telegram Stars that must be paid
        to transfer the gift; omitted if the bot cannot transfer the gift.
    last_resale_currency (:obj:`str`, optional): For gifts bought from other users, the
        currency in which the payment for the gift was done. Currently, one of ``XTR`` for
        Telegram Stars or ``TON`` for toncoins.

        .. versionadded:: 22.6
    last_resale_amount (:obj:`int`, optional): For gifts bought from other users, the price
        paid for the gift in either Telegram Stars or nanotoncoins.

        .. versionadded:: 22.6
    next_transfer_date (:obj:`datetime.datetime`, optional): Date when the gift can be
        transferred. If it's in the past, then the gift can be transferred now.
        |datetime_localization|

        .. versionadded:: 22.3

Attributes:
    gift (:class:`UniqueGift`): Information about the gift.
    origin (:obj:`str`): Origin of the gift. Currently, either :attr:`UPGRADE` for gifts
        upgraded from regular gifts, :attr:`TRANSFER` for gifts transferred from other users
        or channels, :attr:`RESALE` for gifts bought from other users,
        :attr:`GIFTED_UPGRADE` for upgrades purchased after the gift was sent, or :attr:`OFFER`
        for gifts bought or sold through gift purchase offers

        .. versionchanged:: 22.3
            The :attr:`RESALE` origin was added.
        .. versionchanged:: 22.6
            Bot API 9.3 added the :attr:`GIFTED_UPGRADE` and :attr:`OFFER` origins.
    owned_gift_id (:obj:`str`) Optional. Unique identifier of the received gift for the
        bot; only present for gifts received on behalf of business accounts.
    transfer_star_count (:obj:`int`): Optional. Number of Telegram Stars that must be paid
        to transfer the gift; omitted if the bot cannot transfer the gift.
    last_resale_currency (:obj:`str`): Optional. For gifts bought from other users, the
        currency in which the payment for the gift was done. Currently, one of ``XTR`` for
        Telegram Stars or ``TON`` for toncoins.

        .. versionadded:: 22.6
    last_resale_amount (:obj:`int`): Optional. For gifts bought from other users, the price
        paid for the gift in either Telegram Stars or nanotoncoins.

        .. versionadded:: 22.6
    next_transfer_date (:obj:`datetime.datetime`): Optional. Date when the gift can be
        transferred. If it's in the past, then the gift can be transferred now.
        |datetime_localization|

        .. versionadded:: 22.3
Nr   c                ó²   <€ V ^8„  d   QhRS[ RS[RS[R,          RS[R,          RS[P                  R,          RS[R,          RS[R,          R	S[R,          /# )
r   ÚgiftÚoriginÚowned_gift_idNÚtransfer_star_countÚnext_transfer_dateÚlast_resale_currencyÚlast_resale_amountr   )rx   r   r   ÚdtmÚdatetimer   )r   r   s   "€r    r!   ÚUniqueGiftInfo.__annotate__\  sx   ø€ ÷ ñ áðñ ðñ ˜T•zð	ñ
 ! 4�Zðñ  ŸL™L¨4Õ/ðñ " D�jðñ   $�Jðñ ˜t•Oñr#   c               ó  <€ \         S	V `  VR 7       Wn        \        P                  ! \
        P                  W"4      V n        W0n        W@n	        WPn
        W`n        Wpn        V P                  V P                  3V n        V P                  4        R# r%   )r&   r'   r�   r	   rB   r   ÚUniqueGiftInfoOriginr�   r‘   r’   r“   r”   r•   r(   r)   )
r*   r�   r�   r‘   r’   r“   r”   r•   r   r+   s
   &&&&&&&&$€r    r'   ÚUniqueGiftInfo.__init__\  sm   ø€ ô 	‰Ñ JÐÔ/à $Œ	ÜŸ?š?¬9×+IÑ+IÈ6ÓZˆŒà)6ÔØ/BÔ Ø7IÔØ0DÔ!Ø.@ÔàŸ)™) T§[¡[Ð1ˆŒà�‰Žr#   c                ó(   <€ V ^8„  d   QhRS[ RRRR/# )r   rF   rG   rH   rI   r�   r   )r   r   s   "€r    r!   r˜   x  s#   ø€ ÷ 
3ñ 
3™8ð 
3¨,ð 
3ÐBRñ 
3r#   c                óà   <€ V P                  V4      p\        V4      p\        VP                  R4      \        V4      VR&   \        VP                  R4      VR7      VR&   \        SV `  WR7      # )rL   r�   r“   )ÚtzinforM   )rO   r   r
   rP   rx   r   r&   rQ   )rS   rF   rG   Ú
loc_tzinfor+   s   &&& €r    rQ   ÚUniqueGiftInfo.de_jsonw  sj   ø€ ð �‰˜tÓ$ˆä1°#Ó6ˆ
Ü'¨¯©°Ó(8¼*ÀcÓJˆˆV‰Ü%3Ø�H‰HÐ)Ó*°:ô&
ˆÐ!Ñ"ô ‰w‰ DˆÓ2Ð2r#   c                ó¦   <€ V ^8„  d   Qh/ S[ S[,          ;R&   S[ S[,          ;R&   S[ S[,          ;R&   S[ S[,          ;R&   S[ S[,          ;R&   # )r   ÚGIFTED_UPGRADEÚOFFERÚRESALEÚTRANSFERÚUPGRADE)r   r   )r   r   s   "€r    r!   r˜   ô  sd   ø‡ ‚ ñT ™#•JÑNñU ñ^ ‘�:Ñ<ñ_ ñh ‘#�JÑ>ñi ñr ‘C�jÑBñs ñv ‘3�ZÑ@òw r#   )r(   r�   r•   r”   r“   r�   r‘   r’   )r�   r•   r”   r“   r�   r‘   r’   r‹   rV   )r.   r/   r0   r1   r2   r   rš   r¢   r£   r¤   r¥   r¦   r3   r'   rX   rQ   Ú__annotate_func__r4   r5   r6   r7   s   @@r    r�   r�   ô  sº   ù‡ € ñGðR "+×!?Ñ!?×!NÑ!N€Nðð "×6Ñ6×<Ñ<€Eðð #×7Ñ7×>Ñ>€Fðð %×9Ñ9×BÑB€HØCØ#×8Ñ8×@Ñ@€GØBð€Iñð '+÷ö ð6 ÷
3ô 
3ó ð
3÷I … r#   r�   )"r2   r—   r–   Úcollections.abcr   Útypingr   r   Útelegramr   Útelegram._chatr   Útelegram._files.stickerr   Útelegram._telegramobjectr   Útelegram._utilsr	   Útelegram._utils.argumentparsingr
   r   Útelegram._utils.datetimer   r   Útelegram._utils.typesr   r   r   r9   rZ   rd   rn   rx   r�   © r#   r    Ú<module>r³      s“   ðñ( ;ã Ý $ß 'å Ý Ý +Ý 3Ý  ß Pß QÝ *çÝôG�~ô GôTF3�nô F3ôR43�~ô 43ôn/˜~ô /ôd43˜ô 43ônW3�ô W3ôtN3�^ö N3r#   