SendCode

class pyrogram.raw.functions.auth.SendCode

Send the verification code for login.

Details
  • Layer: 126

  • ID: 0xa677244f

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 – Contains info on a confirmation code message sent via SMS, phone call or Telegram.