
    Yi7                         S r SSKJ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KJr  \(       a  SSKJr   " S	 S
\5      rg)zSThis module contains a class that represents a Telegram InputInvoiceMessageContent.    )Sequence)TYPE_CHECKINGOptional)InputMessageContent)LabeledPrice)parse_sequence_arg)JSONDict)Botc            -       Z  ^  \ rS rSrSrSr              S"SS.S\S\S\S	\\   S
\S\\	   S\\
   S\\\
      S\\   S\\   S\\
   S\\
   S\\
   S\\   S\\   S\\   S\\   S\\   S\\   S\\   S\\   4*U 4S jjjjr\ S#S\\   S\S   S\S    4U 4S  jjj5       rS!rU =r$ )$InputInvoiceMessageContent    a"  
Represents the content of a invoice message to be sent as the result of an inline query.

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

.. versionadded:: 13.5

Args:
    title (:obj:`str`): Product name. :tg-const:`telegram.Invoice.MIN_TITLE_LENGTH`-
        :tg-const:`telegram.Invoice.MAX_TITLE_LENGTH` characters.
    description (:obj:`str`): Product description.
        :tg-const:`telegram.Invoice.MIN_DESCRIPTION_LENGTH`-
        :tg-const:`telegram.Invoice.MAX_DESCRIPTION_LENGTH` characters.
    payload (:obj:`str`): Bot-defined invoice payload.
        :tg-const:`telegram.Invoice.MIN_PAYLOAD_LENGTH`-
        :tg-const:`telegram.Invoice.MAX_PAYLOAD_LENGTH` bytes. This will not be displayed
        to the user, use it for your internal processes.
    provider_token (:obj:`str`): Payment provider token, obtained via
        `@Botfather <https://t.me/Botfather>`_. Pass an empty string for payments in
        |tg_stars|.

        .. deprecated:: 21.3
            As of Bot API 7.4, this parameter is now optional and future versions of the
            library will make it optional as well.
    currency (:obj:`str`): Three-letter ISO 4217 currency code, see more on
        `currencies <https://core.telegram.org/bots/payments#supported-currencies>`_.
        Pass ``XTR`` for payments in |tg_stars|.
    prices (Sequence[:class:`telegram.LabeledPrice`]): Price breakdown, a list of
        components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus,
        etc.). Must contain exactly one item for payments in |tg_stars|.

        .. versionchanged:: 20.0
            |sequenceclassargs|

    max_tip_amount (:obj:`int`, optional): The maximum accepted amount for tips in the
        *smallest units* of the currency (integer, **not** float/double). For example, for a
        maximum tip of ``US$ 1.45`` pass ``max_tip_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). Defaults to ``0``. Not supported for payments in |tg_stars|.
    suggested_tip_amounts (Sequence[:obj:`int`], optional): An array of suggested
        amounts of tip in the *smallest units* of the currency (integer, **not** float/double).
        At most 4 suggested tip amounts can be specified. The suggested tip amounts must be
        positive, passed in a strictly increased order and must not exceed
        :attr:`max_tip_amount`.

        .. versionchanged:: 20.0

            * |tupleclassattrs|
            * |alwaystuple|

    provider_data (:obj:`str`, optional): An object for data about the invoice,
        which will be shared with the payment provider. A detailed description of the required
        fields should be provided by the payment provider.
    photo_url (:obj:`str`, optional): URL of the product photo for the invoice. Can be a photo
        of the goods or a marketing image for a service. People like it better when they see
        what they are paying for.
    photo_size (:obj:`int`, optional): Photo size.
    photo_width (:obj:`int`, optional): Photo width.
    photo_height (:obj:`int`, optional): Photo height.
    need_name (:obj:`bool`, optional): Pass :obj:`True`, if you require the user's full
        name to complete the order. Ignored for payments in |tg_stars|.
    need_phone_number (:obj:`bool`, optional): Pass :obj:`True`, if you require the user's
        phone number to complete the order. Ignored for payments in |tg_stars|.
    need_email (:obj:`bool`, optional): Pass :obj:`True`, if you require the user's email
        address to complete the order. Ignored for payments in |tg_stars|.
    need_shipping_address (:obj:`bool`, optional): Pass :obj:`True`, if you require the
        user's shipping address to complete the order. Ignored for payments in |tg_stars|
    send_phone_number_to_provider (:obj:`bool`, optional): Pass :obj:`True`, if user's
        phone number should be sent to provider. Ignored for payments in |tg_stars|.
    send_email_to_provider (:obj:`bool`, optional): Pass :obj:`True`, if user's email
        address should be sent to provider. Ignored for payments in |tg_stars|.
    is_flexible (:obj:`bool`, optional): Pass :obj:`True`, if the final price depends on
        the shipping method. Ignored for payments in |tg_stars|.

Attributes:
    title (:obj:`str`): Product name. :tg-const:`telegram.Invoice.MIN_TITLE_LENGTH`-
        :tg-const:`telegram.Invoice.MAX_TITLE_LENGTH` characters.
    description (:obj:`str`): Product description.
        :tg-const:`telegram.Invoice.MIN_DESCRIPTION_LENGTH`-
        :tg-const:`telegram.Invoice.MAX_DESCRIPTION_LENGTH` characters.
    payload (:obj:`str`): Bot-defined invoice payload.
        :tg-const:`telegram.Invoice.MIN_PAYLOAD_LENGTH`-
        :tg-const:`telegram.Invoice.MAX_PAYLOAD_LENGTH` bytes. This will not be displayed
        to the user, use it for your internal processes.
    provider_token (:obj:`str`): Payment provider token, obtained via
        `@Botfather <https://t.me/Botfather>`_. Pass an empty string for payments in `Telegram
        Stars <https://t.me/BotNews/90>`_.
    currency (:obj:`str`): Three-letter ISO 4217 currency code, see more on
        `currencies <https://core.telegram.org/bots/payments#supported-currencies>`_.
        Pass ``XTR`` for payments in |tg_stars|.
    prices (tuple[:class:`telegram.LabeledPrice`]): Price breakdown, a list of
        components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus,
        etc.). Must contain exactly one item for payments in |tg_stars|.

        .. versionchanged:: 20.0
            |tupleclassattrs|

    max_tip_amount (:obj:`int`): Optional. The maximum accepted amount for tips in the
        *smallest units* of the currency (integer, **not** float/double). For example, for a
        maximum tip of ``US$ 1.45`` ``max_tip_amount`` is ``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). Defaults to ``0``. Not supported for payments in |tg_stars|.
    suggested_tip_amounts (tuple[:obj:`int`]): Optional. An array of suggested
        amounts of tip in the *smallest units* of the currency (integer, **not** float/double).
        At most 4 suggested tip amounts can be specified. The suggested tip amounts must be
        positive, passed in a strictly increased order and must not exceed
        :attr:`max_tip_amount`.

        .. versionchanged:: 20.0
            |tupleclassattrs|

    provider_data (:obj:`str`): Optional. An object for data about the invoice,
        which will be shared with the payment provider. A detailed description of the required
        fields should be provided by the payment provider.
    photo_url (:obj:`str`): Optional. URL of the product photo for the invoice. Can be a photo
        of the goods or a marketing image for a service. People like it better when they see
        what they are paying for.
    photo_size (:obj:`int`): Optional. Photo size.
    photo_width (:obj:`int`): Optional. Photo width.
    photo_height (:obj:`int`): Optional. Photo height.
    need_name (:obj:`bool`): Optional. Pass :obj:`True`, if you require the user's full name to
        complete the order. Ignored for payments in |tg_stars|.
    need_phone_number (:obj:`bool`): Optional. Pass :obj:`True`, if you require the user's
        phone number to complete the order. Ignored for payments in |tg_stars|.
    need_email (:obj:`bool`): Optional. Pass :obj:`True`, if you require the user's email
        address to complete the order. Ignored for payments in |tg_stars|.
    need_shipping_address (:obj:`bool`): Optional. Pass :obj:`True`, if you require the user's
        shipping address to complete the order. Ignored for payments in |tg_stars|.
    send_phone_number_to_provider (:obj:`bool`): Optional. Pass :obj:`True`, if user's phone
        number should be sent to provider. Ignored for payments in |tg_stars|.
    send_email_to_provider (:obj:`bool`): Optional. Pass :obj:`True`, if user's email address
        should be sent to provider. Ignored for payments in |tg_stars|.
    is_flexible (:obj:`bool`): Optional. Pass :obj:`True`, if the final price depends on the
        shipping method. Ignored for payments in |tg_stars|.

)currencydescriptionis_flexiblemax_tip_amount
need_email	need_nameneed_phone_numberneed_shipping_addresspayloadphoto_height
photo_size	photo_urlphoto_widthpricesprovider_dataprovider_tokensend_email_to_providersend_phone_number_to_providersuggested_tip_amountstitleN
api_kwargsr!   r   r   r   r   r   r   r    r   r   r   r   r   r   r   r   r   r   r   r   r#   c                (  > [         TU ]  US9  U R                  5          Xl        X l        X0l        X@l        XPl        [        U5      U l	        Xpl
        [        U5      U l        Xl        Xl        Xl        Xl        Xl        Xl        Xl        UU l        UU l        UU l        UU l        UU l        U R                  U R                  U R
                  U R                  U R                  U R                  4U l        S S S 5        g ! , (       d  f       g = f)Nr"   )super__init__	_unfrozenr!   r   r   r   r   r   r   r   r    r   r   r   r   r   r   r   r   r   r   r   r   	_id_attrs)selfr!   r   r   r   r   r   r   r    r   r   r   r   r   r   r   r   r   r   r   r   r#   	__class__s                         V/app/.venv/lib/python3.13/site-packages/telegram/_inline/inputinvoicemessagecontent.pyr&   #InputInvoiceMessageContent.__init__   s    2 	J/^^#J$/ 'L1?!)M4Fv4NDK1?:LMb:cD&0=,5N-7O.9/;-6N5F".8DO9ND&A^D.:PD'/:D 

  ##DN1 s   CD
Ddatabotr
   returnc                    > U R                  U5      nU(       d  g[        R                  " UR                  S5      U5      US'   [        TU ]  XS9$ )z,See :meth:`telegram.TelegramObject.de_json`.Nr   )r-   r.   )_parse_datar   de_listgetr%   de_json)clsr-   r.   r*   s      r+   r4   "InputInvoiceMessageContent.de_json   sI    
 t$%--dhhx.@#FXwD22    )r(   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   )NNNNNNNNNNNNNN)N)__name__
__module____qualname____firstlineno____doc__	__slots__strr   r   r   intboolr	   r&   classmethodr4   __static_attributes____classcell__)r*   s   @r+   r   r       s   KZI> )-9='+#'$(%)&*$(,0%)048<15&*+9. *./99 9 	9
 !9 9 &9 !9  (69  }9 C=9 SM9 c]9 sm9 D>9  $D>!9" TN#9$  (~%9& (0~'9( !))9* d^+9. X&/9 9v >B3H%3,4UO3	.	/3 3r7   r   N)r<   collections.abcr   typingr   r   $telegram._inline.inputmessagecontentr   telegram._payment.labeledpricer   telegram._utils.argumentparsingr   telegram._utils.typesr	   telegramr
   r    r7   r+   <module>rL      s2   & Z $ * D 7 > *l3!4 l3r7   