
    iq	                     H    S SK Jr  S SKrS SKJrJr  S SKJr   " S S5      rg)    )ListN)rawtypes)utilsc                   0    \ rS rSrSSS\\   SS4S jrSrg	)
	CraftGift   selfzpyrogram.Clientowned_gift_idsreturnztypes.CraftGiftResultc                 t  #    U R                  [        R                  R                  R	                  U Vs/ s H!  n[
        R                  " X5      I Sh  vN PM#     snS95      I Sh  vN nUR                   Vs0 s H  oDR                  U_M     nnUR                   Vs0 s H  oDR                  U_M     nnUR                   H  n[        U[        R                  R                  5      (       a  [        R                  " 5       s  $ [        U[        R                  R                  5      (       d  Mn  [        R                   R#                  U UR$                  UU['        USS5      ['        USS5      S9I Sh  vN n[        R(                  " UR*                  S9s  $    g GNMs  snf  GN@s  snf s  snf  N<7f)a>  Crafts a new gift from other gifts that will be permanently lost.

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

Parameters:
    owned_gift_ids (List of ``str``):
        Identifier of the gifts to use for crafting.

Returns:
    :obj:`~pyrogram.types.CraftGiftResult`: On success, returns the result of gift crafting.
N)stargiftconnection_idreply_to_message)business_connection_idraw_reply_to_message)gift)invoker   	functionspaymentsCraftStarGiftr   get_input_stargiftusersidchatsupdates
isinstancer   UpdateStarGiftCraftFailCraftGiftResultFailUpdateNewMessageMessage_parsemessagegetattrCraftGiftResultSuccessr   )	r
   r   owned_gift_idrir   r   ur#   s	            Q/app/mltbenv/lib/python3.13/site-packages/pyrogram/methods/payments/craft_gift.py
craft_giftCraftGift.craft_gift   sd     ++MM""00cqrcqR_ 8 8 MMMcqr 1 
 
 #$''*'Qq'*"#''*'Qq'*A!SYY>>??0022Asyy99:: % 4 4II+21ot+L)04F)M !5 !  33    Nr
 +*sf   3F8F$F!F$F8)F)*F8<F,F8"F18A8F84AF89F6:'F8!F$$F8,F8 N)__name__
__module____qualname____firstlineno__r   strr+   __static_attributes__r-       r*   r   r      s%    ((S	( 
!(r4   r   )typingr   pyrogramr   r   r   r   r-   r4   r*   <module>r7      s   &    ) )r4   