AuthenticationCodeType
public indirect enum AuthenticationCodeType : Codable, Equatable, FunctionResult, TDEnum, EquatableEnum
Provides information about the method by which an authentication code is delivered to the user
-
An authentication code is delivered via a private Telegram message, which can be viewed in another client
- length: Length of the code
Declaration
Swift
case telegramMessage(length: Int32)
-
An authentication code is delivered via an SMS message to the specified phone number
- length: Length of the code
Declaration
Swift
case sms(length: Int32)
-
An authentication code is delivered via a phone call to the specified phone number
- length: Length of the code
Declaration
Swift
case call(length: Int32)
-
An authentication code is delivered by an immediately cancelled call to the specified phone number. The number from which the call was made is the code
- pattern: Pattern of the phone number from which the call will be made
Declaration
Swift
case flashCall(pattern: String)