
    Yi
                     R    S r SSKJrJr  SSKJr  SSKJr  SSKJ	r	   " S S\5      r
g)	zBThis module contains an object that represents a Telegram Invoice.    )FinalOptional)	constants)TelegramObject)JSONDictc                     ^  \ rS rSr% SrSrSS.S\S\S\S	\S
\S\\	   4U 4S jjjr
\R                  R                  r\\   \S'    \R                  R                   r\\   \S'    \R                  R"                  r\\   \S'    \R                  R$                  r\\   \S'    \R                  R&                  r\\   \S'    \R                  R(                  r\\   \S'    \R                  R*                  r\\   \S'   SrU =r$ )Invoice   a  This object contains basic information about an invoice.

Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal, if their :attr:`title`, :attr:`description`, :paramref:`start_parameter`,
:attr:`currency` and :attr:`total_amount` are equal.

Args:
    title (:obj:`str`): Product name.
    description (:obj:`str`): Product description.
    start_parameter (:obj:`str`): Unique bot deep-linking parameter that can be used to
        generate this invoice.
    currency (:obj:`str`): Three-letter ISO 4217 currency code, or ``XTR`` for payments in
        |tg_stars|.
    total_amount (:obj:`int`): Total price in the smallest units of the currency (integer,
        **not** float/double). For example, for a price of ``US$ 1.45`` pass ``amount = 145``.
        See the ``exp`` parameter in
        `currencies.json <https://core.telegram.org/bots/payments/currencies.json>`_,
        it shows the number of digits past the decimal point for each currency
        (2 for the majority of currencies).

Attributes:
    title (:obj:`str`): Product name.
    description (:obj:`str`): Product description.
    start_parameter (:obj:`str`): Unique bot deep-linking parameter that can be used to
        generate this invoice.
    currency (:obj:`str`): Three-letter ISO 4217 currency code, or ``XTR`` for payments in
        |tg_stars|.
    total_amount (:obj:`int`): Total price in the smallest units of the currency (integer,
        **not** float/double). For example, for a price of ``US$ 1.45`` pass ``amount = 145``.
        See the ``exp`` parameter in
        `currencies.json <https://core.telegram.org/bots/payments/currencies.json>`_,
        it shows the number of digits past the decimal point for each currency
        (2 for the majority of currencies).

)currencydescriptionstart_parametertitletotal_amountN
api_kwargsr   r   r   r   r   r   c                   > [         TU ]  US9  Xl        X l        X0l        X@l        XPl        U R                  U R                  U R                  U R
                  U R                  4U l        U R                  5         g )Nr   )	super__init__r   r   r   r   r   	_id_attrs_freeze)selfr   r   r   r   r   r   	__class__s          D/app/.venv/lib/python3.13/site-packages/telegram/_payment/invoice.pyr   Invoice.__init__I   sp     	J/
 +$3%!- JJ  MM
 	    MIN_TITLE_LENGTHMAX_TITLE_LENGTHMIN_DESCRIPTION_LENGTHMAX_DESCRIPTION_LENGTHMIN_PAYLOAD_LENGTHMAX_PAYLOAD_LENGTHMAX_TIP_AMOUNTS)r   r   r   r   r   r   )__name__
__module____qualname____firstlineno____doc__	__slots__strintr   r   r   r   InvoiceLimitr   r   __annotations__r   r   r   r    r!   r"   __static_attributes____classcell__)r   s   @r   r	   r	      sK   "HI  *.  	
   X& 6 $-#9#9#J#JeCjJ $-#9#9#J#JeCjJ *3)?)?)V)VE#JV *3)?)?)V)VE#JV &/%;%;%N%Nc
N &/%;%;%N%Nc
N #,"8"8"H"HOU3ZHr   r	   N)r'   typingr   r   telegramr   telegram._telegramobjectr   telegram._utils.typesr   r	    r   r   <module>r4      s%   & I "  3 *jn jr   