SendPhoneNumberConfirmationCode
public struct SendPhoneNumberConfirmationCode : Codable, Equatable, TDFunction
Sends phone number confirmation code. Should be called when user presses “https://t.me/confirmphone?phone=*******&hash=**********” or “tg://confirmphone?phone=****&hash=*******” link
-
Undocumented
Declaration
Swift
public typealias Result = AuthenticationCodeInfo -
Value of the “hash” parameter from the link
Declaration
Swift
public let hash: String -
Value of the “phone” parameter from the link
Declaration
Swift
public let phoneNumber: String -
Settings for the authentication of the user’s phone number
Declaration
Swift
public let settings: PhoneNumberAuthenticationSettings -
Sends phone number confirmation code. Should be called when user presses “https://t.me/confirmphone?phone=*******&hash=**********” or “tg://confirmphone?phone=****&hash=*******” link
Declaration
Swift
public init(hash: String, phoneNumber: String, settings: PhoneNumberAuthenticationSettings)Parameters
hashValue of the “hash” parameter from the link
phoneNumberValue of the “phone” parameter from the link
settingsSettings for the authentication of the user’s phone number
View on GitHub
Install in Dash
SendPhoneNumberConfirmationCode Structure Reference