haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.AuthenticationCodeType

Synopsis

Documentation

data AuthenticationCodeType Source #

Provides information about the method by which an authentication code is delivered to the user

Constructors

AuthenticationCodeTypeTelegramMessage

A digit-only authentication code is delivered via a private Telegram message, which can be viewed from another active session

Fields

AuthenticationCodeTypeSms

A digit-only authentication code is delivered via an SMS message to the specified phone number; non-official applications may not receive this type of code

Fields

AuthenticationCodeTypeSmsWord

An authentication code is a word delivered via an SMS message to the specified phone number; non-official applications may not receive this type of code

Fields

AuthenticationCodeTypeSmsPhrase

An authentication code is a phrase from multiple words delivered via an SMS message to the specified phone number; non-official applications may not receive this type of code

Fields

AuthenticationCodeTypeCall

A digit-only authentication code is delivered via a phone call to the specified phone number

Fields

AuthenticationCodeTypeFlashCall

An authentication code is delivered by an immediately canceled call to the specified phone number. The phone number that calls is the code that must be entered automatically

Fields

  • pattern :: Maybe Text

    Pattern of the phone number from which the call will be made

AuthenticationCodeTypeMissedCall

An authentication code is delivered by an immediately canceled call to the specified phone number. The last digits of the phone number that calls are the code that must be entered manually by the user

Fields

AuthenticationCodeTypeFragment

A digit-only authentication code is delivered to https://fragment.com. The user must be logged in there via a wallet owning the phone number's NFT

Fields

AuthenticationCodeTypeFirebaseAndroid

A digit-only authentication code is delivered via Firebase Authentication to the official Android application

Fields

AuthenticationCodeTypeFirebaseIos

A digit-only authentication code is delivered via Firebase Authentication to the official iOS application

Fields

  • receipt :: Maybe Text

    Receipt of successful application token validation to compare with receipt from push notification

  • push_timeout :: Maybe Int

    Time after the next authentication method is expected to be used if verification push notification isn't received, in seconds

  • _length :: Maybe Int

    Length of the code