+
    rpÐj  ã                   ó„   € R 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 ]'       d   ^ RIHt  ! R R	]4      tR
# )z?This module contains the classes for Telegram Stars affiliates.)ÚTYPE_CHECKING)ÚChat)ÚTelegramObject)ÚUser)Úde_json_optional©ÚJSONDict)ÚBotc                   óx   a a€ ] tR t^!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# )ÚAffiliateInfoa	  Contains information about the affiliate that received a commission via this transaction.

Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal, if their :attr:`affiliate_user`, :attr:`affiliate_chat`,
:attr:`commission_per_mille`, :attr:`amount`, and :attr:`nanostar_amount` are equal.

.. versionadded:: 21.9

Args:
    affiliate_user (:class:`telegram.User`, optional): The bot or the user that received an
        affiliate commission if it was received by a bot or a user
    affiliate_chat (:class:`telegram.Chat`, optional): The chat that received an affiliate
        commission if it was received by a chat
    commission_per_mille (:obj:`int`): The number of Telegram Stars received by the affiliate
        for each 1000 Telegram Stars received by the bot from referred users
    amount (:obj:`int`): Integer amount of Telegram Stars received by the affiliate from the
        transaction, rounded to 0; can be negative for refunds
    nanostar_amount (:obj:`int`, optional): The number of
        :tg-const:`~telegram.constants.Nanostar.VALUE` shares of Telegram
        Stars received by the affiliate; from
        :tg-const:`~telegram.constants.NanostarLimit.MIN_AMOUNT` to
        :tg-const:`~telegram.constants.NanostarLimit.MAX_AMOUNT`;
        can be negative for refunds

Attributes:
    affiliate_user (:class:`telegram.User`): Optional. The bot or the user that received an
        affiliate commission if it was received by a bot or a user
    affiliate_chat (:class:`telegram.Chat`): Optional. The chat that received an affiliate
        commission if it was received by a chat
    commission_per_mille (:obj:`int`): The number of Telegram Stars received by the affiliate
        for each 1000 Telegram Stars received by the bot from referred users
    amount (:obj:`int`): Integer amount of Telegram Stars received by the affiliate from the
        transaction, rounded to 0; can be negative for refunds
    nanostar_amount (:obj:`int`): Optional. The number of
        :tg-const:`~telegram.constants.Nanostar.VALUE` shares of Telegram
        Stars received by the affiliate; from
        :tg-const:`~telegram.constants.NanostarLimit.MIN_AMOUNT` to
        :tg-const:`~telegram.constants.NanostarLimit.MAX_AMOUNT`;
        can be negative for refunds
NÚ
api_kwargsc                óZ   <€ V ^8„  d   QhRS[ RS[ RRRRRS[ R,          R	S[R,          R
R/# )é   Úcommission_per_milleÚamountÚaffiliate_userzUser | NoneÚaffiliate_chatzChat | NoneÚnanostar_amountNr   Úreturn)Úintr   )ÚformatÚ__classdict__s   "€ÚW/opt/hermes/.venv/lib/python3.14/site-packages/telegram/_payment/stars/affiliateinfo.pyÚ__annotate__ÚAffiliateInfo.__annotate__S   sY   ø€ ÷ ñ á!ðñ ðð &ð	ð
 &ðñ ˜t�ðñ ˜t•Oðð 
ñó    c               ó   <€ \         SV `  VR 7       W0n        W@n        Wn        W n        WPn        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   Ú	_id_attrsÚ_freeze)Úselfr   r   r   r   r   r   Ú	__class__s   &&&&&&$€r   r   ÚAffiliateInfo.__init__S   ss   ø€ ô 	‰Ñ JÐÔ/Ø+9ÔØ+9ÔØ)=Ô!Ø!ŒØ+:Ôð ×ÑØ×ÑØ×%Ñ%Ø�K‰KØ× Ñ ð
ˆŒð 	�‰Žr   c                ó(   <€ V ^8„  d   QhRS[ RRRR/# )r   ÚdataÚbotz
Bot | Noner   r   r   )r   r   s   "€r   r   r   n   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&   \
        SV `  WR7      # )z,See :meth:`telegram.TelegramObject.de_json`.r   r   )r%   r&   )Ú_parse_datar   Úgetr   r   r   Úde_json)Úclsr%   r&   r"   s   &&&€r   r*   ÚAffiliateInfo.de_jsonm   sb   ø€ ð �‰˜tÓ$ˆä!1°$·(±(Ð;KÓ2LÌdÐTWÓ!XˆÐÑÜ!1°$·(±(Ð;KÓ2LÌdÐTWÓ!XˆÐÑä‰w‰ DˆÓ2Ð2r   )r   r   r   r   r   r   )r   r   r   r   r   )NNN)N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	__slots__r   Úclassmethodr*   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r"   r   s   @@r   r   r   !   sD   ù‡ € ñ'ðR€Iñð '+÷ö ð4 ÷3ô 3ó ÷3ð 3r   r   N)r1   Útypingr   Útelegram._chatr   Útelegram._telegramobjectr   Útelegram._userr   Útelegram._utils.argumentparsingr   Útelegram._utils.typesr   Útelegramr	   r   © r   r   Ú<module>r?      s1   ðñ& Få  å Ý 3Ý Ý <Ý *çÝôT3�Nö T3r   