Interface SetAuthenticationPhoneNumber

Sets the phone number of the user and sends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitPhoneNumber, or if there is no pending authentication query and the current authorization state is authorizationStateWaitEmailAddress, authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword. Request type for Tdjson#setAuthenticationPhoneNumber.

interface SetAuthenticationPhoneNumber {
    @type: "setAuthenticationPhoneNumber";
    phone_number: string;
    settings: PhoneNumberAuthenticationSettings;
}

Properties

@type: "setAuthenticationPhoneNumber"
phone_number: string

The phone number of the user, in international format.

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