auth.SendCode#

class pyrogram.raw.functions.auth.SendCode#

Send the verification code for login.

Details:
  • Layer: 158

  • ID: A677244F

Parameters:
  • phone_number (str) – Phone number in international format.

  • api_id (int 32-bit) – Application identifier (see App configuration).

  • api_hash (str) – Application secret hash (see App configuration).

  • settings (CodeSettings) – Settings for the code type to send.

Returns:

auth.SentCode