ChangePhoneNumber
public struct ChangePhoneNumber : Codable, Equatable, TDFunction
Changes the phone number of the user and sends an authentication code to the user’s new phone number. On success, returns information about the sent code
-
Undocumented
Declaration
Swift
public typealias Result = AuthenticationCodeInfo -
The new 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 -
Changes the phone number of the user and sends an authentication code to the user’s new phone number. On success, returns information about the sent code
Declaration
Swift
public init(phoneNumber: String, settings: PhoneNumberAuthenticationSettings)Parameters
phoneNumberThe new phone number of the user in international format
settingsSettings for the authentication of the user’s phone number
View on GitHub
Install in Dash
ChangePhoneNumber Structure Reference