SetAuthenticationPhoneNumber

public struct SetAuthenticationPhoneNumber : Codable, Equatable, TDFunction

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 authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword

  • Undocumented

    Declaration

    Swift

    public typealias Result = Ok
  • The phone number of the user, in international format

    Declaration

    Swift

    public let phoneNumber: String
  • Settings for the authentication of the user’s phone number

    Declaration

    Swift

    public let settings: PhoneNumberAuthenticationSettings
  • 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 authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword

    Declaration

    Swift

    public init(phoneNumber: String, settings: PhoneNumberAuthenticationSettings)

    Parameters

    phoneNumber

    The phone number of the user, in international format

    settings

    Settings for the authentication of the user’s phone number