Skip to main content

auth.CodeType

This is a boxed type (a TL class): the Go interface tg.AuthCodeTypeClass, implemented by the constructors below. A value of this type is one of them — switch on the concrete type to handle it.

switch v := value.(type) {
case *tg.AuthCodeTypeCall: // auth.codeTypeCall
case *tg.AuthCodeTypeFlashCall: // auth.codeTypeFlashCall
case *tg.AuthCodeTypeFragmentSMS: // auth.codeTypeFragmentSms
case *tg.AuthCodeTypeMissedCall: // auth.codeTypeMissedCall
case *tg.AuthCodeTypeSMS: // auth.codeTypeSms
}

Constructors

ConstructorTL name
AuthCodeTypeCallauth.codeTypeCall
AuthCodeTypeFlashCallauth.codeTypeFlashCall
AuthCodeTypeFragmentSMSauth.codeTypeFragmentSms
AuthCodeTypeMissedCallauth.codeTypeMissedCall
AuthCodeTypeSMSauth.codeTypeSms

References