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 formatsettings- Settings for the authentication of the user’s phone number; pass null to use default settingsr#type- Type of the request for which the code is sentclient_id- The client id to send the request to