Function send_phone_number_code

Source
pub async fn send_phone_number_code(
    phone_number: String,
    settings: Option<PhoneNumberAuthenticationSettings>,
    type: PhoneNumberCodeType,
    client_id: i32,
) -> Result<AuthenticationCodeInfo, Error>
Expand description

Sends a code to the specified phone number. Aborts previous phone number verification if there was one. On success, returns information about the sent code

§Arguments

  • phone_number - The phone number, in international format
  • settings - Settings for the authentication of the user’s phone number; pass null to use default settings
  • r#type - Type of the request for which the code is sent
  • client_id - The client id to send the request to