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
| Constructor | TL name |
|---|---|
AuthCodeTypeCall | auth.codeTypeCall |
AuthCodeTypeFlashCall | auth.codeTypeFlashCall |
AuthCodeTypeFragmentSMS | auth.codeTypeFragmentSms |
AuthCodeTypeMissedCall | auth.codeTypeMissedCall |
AuthCodeTypeSMS | auth.codeTypeSms |