Interface SendPhoneNumberCode

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. Request type for Tdjson#sendPhoneNumberCode.

interface SendPhoneNumberCode {
    @type: "sendPhoneNumberCode";
    phone_number: string;
    settings: PhoneNumberAuthenticationSettings;
    type: PhoneNumberCodeType;
}

Properties

@type: "sendPhoneNumberCode"
phone_number: string

The phone number, in international format.

Settings for the authentication of the user's phone number; pass null to use default settings.

Type of the request for which the code is sent.