Skip to main content

codeSettings

Settings used by telegram servers for sending the confirm code. Example implementations: telegram for android, tdlib.

type tg.CodeSettings struct { /* ... */ }

Fields​

NameTypeRequiredDescription
AllowFlashcallbool—Whether to allow phone verification via phone calls.
CurrentNumberbool—Pass true if the phone number is used on the current device. Ignored if allow_flashcall is not set.
AllowAppHashbool—If a token that will be included in eventually sent SMSs is required: required in newer versions of android, to use the android SMS receiver APIs
AllowMissedCallbool—Whether this device supports receiving the code using the auth.codeTypeMissedCall method
AllowFirebasebool—Whether Firebase auth is supported
UnknownNumberbool—Set this flag if there is a SIM card in the current device, but it is not possible to check whether the specified phone number matches the SIM's phone number.
LogoutTokens[][]byte—Previously stored future auth tokens, see the documentation for more info »
Tokenstring—Used only by official iOS apps for Firebase auth: device token for apple push.
AppSandboxbool—Used only by official iOS apps for firebase auth: whether a sandbox-certificate will be used during transmission of the push notification.

References​