
    i                         S SK r S SKJr  S SKrS SKJr  S SKJr  S SKJrJr  \ R                  " \
5      r " S S5      rg)    N)List)raw)types)PhoneMigrateNetworkMigratec                   j    \ rS rSr         SSSS\S\S\S\S	\S
\S\\   S\S\S\SS4S jjrSr	g)SendCode   Nselfzpyrogram.Clientphone_numbercurrent_numberallow_flashcallallow_app_hashallow_missed_callallow_firebaselogout_tokenstokenrecaptcha_tokenapp_sandboxreturnztypes.SentCodec                 B  #    UR                  S5      n  U R                  [        R                  R                  R                  UU R                  U R                  [        R                  R                  UUUUUUUU
S9S9U	S9I Sh  vN n[        R                  R                  U5      $  N#! [        [        4 Ga[  nU R                  UR                  U R                   S9I Sh  vN  nU R"                  R%                  5       I Sh  vN    U R'                  UR                  UR(                  UR*                  SSS	9I Sh  vN  U l        U R,                  R/                  UR                  5      I Sh  vN    U R,                  R1                  UR(                  5      I Sh  vN    U R,                  R+                  UR*                  5      I Sh  vN    U R,                  R3                  U R"                  R2                  5      I Sh  vN     SnAOSnAff = fGM
  7f)
ah  Send the confirmation code to the given phone number.

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

Parameters:
    phone_number (``str``):
        Phone number in international format (includes the country prefix).

    current_number (``bool``, *optional*):
        Whether the phone number is the current one.

    allow_flashcall (``bool``, *optional*):
        Whether to allow a flash call.

    allow_app_hash (``bool``, *optional*):
        Whether to allow an app hash.

    allow_missed_call (``bool``, *optional*):
        Whether to allow a missed call.

    allow_firebase (``bool``, *optional*):
        Whether to allow firebase.

    logout_tokens (List of ``bytes``, *optional*):
        List of logout tokens.

    token (``str``, *optional*):
        Token.

    recaptcha_token (``str``, *optional*):
        Recaptcha token.

    app_sandbox (``bool``, *optional*):
        Whether to use the app sandbox.

Returns:
    :obj:`~pyrogram.types.SentCode`: On success, an object containing information on the sent confirmation code
    is returned.

Raises:
    BadRequest: In case the phone number is invalid.
z +T)r   r   r   r   r   r   r   r   )r   api_idapi_hashsettings)r   N)ipv6F)dc_idserver_addressportexport_authorization	temporary)stripinvoker   	functionsauthr	   r   r   r   CodeSettingsSentCode_parser   r   get_dc_optionvaluer   sessionstopget_session
ip_addressr   storager   r   auth_key)r   r   r   r   r   r   r   r   r   r   r   re	dc_options                 L/app/mltbenv/lib/python3.13/site-packages/pyrogram/methods/auth/send_code.py	send_codeSendCode.send_code   s    n $))$/$0++MM&&//%1#{{!%!$!7!7,;+9+9.?+9*7"'(3 "8 	"	 0  %4! &  F ~~,,Q//G$ !.1 C"&"4"4QWW499"4"MMM	ll'')))%)%5%5''#,#7#7")." &6 &     ll((111ll11)2F2FGGGll''	777ll++DLL,A,ABBBC) s   HA1B- B+B- H+B- -H>'H%C(&"HD	9HE2H5E86-H#F&$-HG7H	H
HHHH)r*   )	NNNNNNNNN)
__name__
__module____qualname____firstlineno__strboolr   bytesr4   __static_attributes__     r3   r	   r	      s      $ $#"&#%)# ^0^0^0 ^0 	^0
 ^0  ^0 ^0 E{^0 ^0 ^0 ^0 
^0 ^0r?   r	   )loggingtypingr   pyrogramr   r   pyrogram.errorsr   r   	getLoggerr6   logr	   r>   r?   r3   <module>rF      s5   &      8!_0 _0r?   