
    i
5                     x    S SK r S SKJrJrJr  S SKrS SKJrJrJrJ	r	  \ R                  " \5      r " S S5      rg)    N)ListOptionalUnion)enumsrawutilstypesc            M          \ rS rSr                              S3SSS\\\4   S\S\S\\\4   S	\S
\S   S\	\   S\	\   S\	\   S\	\\      S\	\   S\	\   S\	\   S\	\   S\	\   S\	\   S\	\
   S\	\
   S\	\
   S\	\
   S\	\
   S\	\
   S\	\
   S\	\
   S\	\
   S\	\   S \	S!   S"\	\
   S#\	\   S$\	S%   S&\	\   S'\	\S(      S)\S*\	S+   S,\	\S-      S.\	\   S/S04LS1 jjrS2rg)4SendInvoice   Nselfzpyrogram.Clientchat_idtitledescriptionpayloadcurrencypricesztypes.LabeledPricemessage_thread_idprovider_tokenmax_tip_amountsuggested_tip_amountsstart_parameterprovider_data	photo_url
photo_sizephoto_widthphoto_height	need_nameneed_phone_number
need_emailneed_shipping_addresssend_phone_number_to_providersend_email_to_provideris_flexibledisable_notificationprotect_contentmessage_effect_idreply_parametersztypes.ReplyParametersallow_paid_broadcastdirect_messages_topic_idsuggested_post_parametersztypes.SuggestedPostParameterssubscription_expiration_datereply_markup)ztypes.InlineKeyboardMarkupztypes.ReplyKeyboardMarkupztypes.ReplyKeyboardRemoveztypes.ForceReplycaption
parse_modezenums.ParseModecaption_entitiesztypes.MessageEntityreply_to_message_idreturnztypes.Messagec%                   #    U$b)  [         R                  S5        [        R                  " U$S9n[        R                  R                  UUU(       a=  [        R                  R                  USU[        R                  R                  UUS9/S9OS[        R                  R                  UU V%s/ s H  n%U%R                  5       PM     sn%U R                  UUUUUUUU	U
Ub  SOSUS9[        U[        5      (       a  UR                  5       OUU[        R                  R                  U(       a  UOS	S
9US9n&[        R                  R                   R"                  " SU R%                  U5      I Sh  vN U&U=(       d    S[&        R(                  " U UUUS9I Sh  vN U R+                  5       UUU (       a  U R                  U 5      I Sh  vN OSUU(       a  UR                  5       OSS.
[&        R,                  " U U!U"U#5      I Sh  vN D6n'U R/                  U'5      I Sh  vN n([&        R0                  " U U(S9I Sh  vN n)U)(       a  U)S   $ S$ s  sn%f  N N N NU N< N!7f)a:  Use this method to send invoices.

.. include:: /_includes/usable-by/bots.rst

Parameters:
    chat_id (``int`` | ``str``):
        Unique identifier (int) or username (str) of the target chat.

    title (``str``):
        Product name, 1-32 characters.

    description (``str``):
        Product description, 1-255 characters.

    payload (``str`` | ``bytes``):
        Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.

    currency (``str``):
        Three-letter ISO 4217 currency code, see `more on currencies <https://core.telegram.org/bots/payments#supported-currencies>`_. Pass ``XTR`` for payments in `Telegram Stars <https://t.me/BotNews/90>`_.

    prices (List of :obj:`~pyrogram.types.LabeledPrice`):
        Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.). Must contain exactly one item for payments in `Telegram Stars <https://t.me/BotNews/90>`_.

    message_thread_id (``int``, *optional*):
        If the message is in a thread, ID of the original message.

    reply_parameters (:obj:`~pyrogram.types.ReplyParameters`, *optional*):
        Describes reply parameters for the message that is being sent.

    provider_token (``str``, *optional*):
        Payment provider token, obtained via `@BotFather <https://t.me/botfather>`_. Pass an empty string for payments in `Telegram Stars <https://t.me/BotNews/90>`_.

    max_tip_amount (``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 `Telegram Stars <https://t.me/BotNews/90>`_.

    suggested_tip_amounts (List of ``int``, *optional*):
        An array of suggested amounts of tips 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 ``max_tip_amount``.

    start_parameter (``str``, *optional*):
        Unique deep-linking parameter. If left empty, **forwarded copies** of the sent message will have a Pay button, allowing multiple users to pay directly from the forwarded message, using the same invoice. If non-empty, forwarded copies of the sent message will have a URL button with a deep link to the bot (instead of a Pay button), with the value used as the start parameter.

    provider_data (``str``, *optional*):
        JSON-serialized data about the invoice, which will be shared with the payment provider. A detailed description of required fields should be provided by the payment provider.

    photo_url (``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 (``int``, *optional*):
        Photo size in bytes.

    photo_width (``int``, *optional*):
        Photo width.

    photo_height (``int``, *optional*):
        Photo height.

    need_name (``bool``, *optional*):
        Pass True if you require the user's full name to complete the order. Ignored for payments in `Telegram Stars <https://t.me/BotNews/90>`_.

    need_phone_number (``bool``, *optional*):
        Pass True if you require the user's phone number to complete the order. Ignored for payments in `Telegram Stars <https://t.me/BotNews/90>`_.

    need_email (``bool``, *optional*):
        Pass True if you require the user's email address to complete the order. Ignored for payments in `Telegram Stars <https://t.me/BotNews/90>`_.

    need_shipping_address (``bool``, *optional*):
        Pass True if you require the user's shipping address to complete the order. Ignored for payments in `Telegram Stars <https://t.me/BotNews/90>`_.

    send_phone_number_to_provider (``bool``, *optional*):
        Pass True if the user's phone number should be sent to the provider. Ignored for payments in `Telegram Stars <https://t.me/BotNews/90>`_.

    send_email_to_provider (``bool``, *optional*):
        Pass True if the user's email address should be sent to the provider. Ignored for payments in `Telegram Stars <https://t.me/BotNews/90>`_.

    is_flexible (``bool``, *optional*):
        Pass True if the final price depends on the shipping method. Ignored for payments in `Telegram Stars <https://t.me/BotNews/90>`_.

    disable_notification (``bool``, *optional*):
        Sends the message silently.
        Users will receive a notification with no sound.

    protect_content (``bool``, *optional*):
        Protects the contents of the sent message from forwarding and saving.

    message_effect_id (``int`` ``64-bit``, *optional*):
        Unique identifier of the message effect to be added to the message; for private chats only.

    allow_paid_broadcast (``bool``, *optional*):
        If True, you will be allowed to send up to 1000 messages per second.
        Ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message.
        The relevant Stars will be withdrawn from the bot's balance.

    direct_messages_topic_id (``int``, *optional*):
        Unique identifier of the topic in a channel direct messages chat administered by the current user.
        For directs only only.

    suggested_post_parameters (:obj:`~pyrogram.types.SuggestedPostParameters`, *optional*):
        Information about the suggested post.

    subscription_expiration_date (``int``, *optional*):
        Expiration date of the subscription, in Unix time.
        Currently the only allowed subscription period is 30*24*60*60 (1 month).
        For recurring payments only.

    reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardRemove` | :obj:`~pyrogram.types.ForceReply`, *optional*):
        Additional interface options. An object for an inline keyboard, custom reply keyboard,
        instructions to remove reply keyboard or to force a reply from the user.

    caption (``str``, *optional*):
        Document caption, 0-1024 characters.

    parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
        By default, texts are parsed using both Markdown and HTML styles.
        You can combine both syntaxes together.

    caption_entities (List of :obj:`~pyrogram.types.MessageEntity`):
        List of special entities that appear in the caption, which can be specified instead of *parse_mode*.

Returns:
    :obj:`~pyrogram.types.Message`: On success, the sent invoice message is returned.

Nzj`reply_to_message_id` is deprecated and will be removed in future updates. Use `reply_parameters` instead.)
message_idz	image/jpg)wh)url	mime_typesize
attributesT)r   r   testname_requestedphone_requestedemail_requestedshipping_address_requestedflexiblephone_to_provideremail_to_providerr   r   	recurringsubscription_periodz{})data)r   r   photoinvoicer   providerr   start_param)r*   )
peermediasilentreply_to	random_id
noforwardsallow_paid_floodskipr-   effectsuggested_post)clientmessagesr    )logwarningr	   ReplyParametersr   InputMediaInvoiceInputWebDocumentDocumentAttributeImageSizeInvoicewrite	test_mode
isinstancestrencodeDataJSON	functionsrT   	SendMediaresolve_peerr   get_reply_tornd_idparse_text_entitiesinvokeparse_messages)*r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   irK   rpcrrT   s*                                             O/app/mltbenv/lib/python3.13/site-packages/pyrogram/methods/bots/send_invoice.pysend_invoiceSendInvoice.send_invoice   s[    R *KK|  %44.  		++#  )),,%II88%& 9 	 - 
 !%II%%!+126a	62^^( 1 *+@$"?"8-&;">"J$PT$@ &   )37C(@(@GNN$g#)),,&3] -  (G , $
L mm$$.. 
((11'/4 -- !)A	  kkm&!5;G|11$777T$@Y4::<_c
  --dGZIYZZ!
& ++c""--TAFF&x{0D0[ 3. 2 8 [ #Fsy   B+I!-IB(I!/I
0(I!I/I!I	<I!II! I!I!=I>I!I!I!I!I!I!rU   )NNNNNNNNNNNNNNNNNNNNNNNNNN NNN)__name__
__module____qualname____firstlineno__r   intr`   bytesr   r   boolro   __static_attributes__rU       rn   r   r      s    ,0(,(,59)-'+#'$(%)&*$(,0%)048<15&*/3*.+/>B/326OS6: 26BF-1[o1o1sCxo1 o1 	o1
 sEz"o1 o1 )*o1 $C=o1 !o1 !o1  (S	2o1 "#o1  }o1 C=o1 SMo1  c]!o1" sm#o1$ D>%o1& $D>'o1( TN)o1*  (~+o1, (0~-o1. !)/o10 d^1o12 'tn3o14 "$5o16 $C=7o18 ##:;9o1: 'tn;o1< #+3-=o1> $,,K#L?o1@ '/smAo1B #
Co1R So1T ./Uo1V #4(=#>?Wo1Z &c][o1\ 
]o1 o1rz   r   )loggingtypingr   r   r   pyrogramr   r   r   r	   	getLoggerrr   rV   r   rU   rz   rn   <module>r      s5   &  ( (  - -!p1 p1rz   