codeSettings
Settings used by telegram servers for sending the confirm code. Example implementations: telegram for android, tdlib.
type tg.CodeSettings struct { /* ... */ }
Fields
| Name | Type | Required | Description |
|---|---|---|---|
AllowFlashcall | bool | — | Whether to allow phone verification via phone calls. |
CurrentNumber | bool | — | Pass true if the phone number is used on the current device. Ignored if allow_flashcall is not set. |
AllowAppHash | bool | — | 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 |
AllowMissedCall | bool | — | Whether this device supports receiving the code using the auth.codeTypeMissedCall method |
AllowFirebase | bool | — | Whether Firebase auth is supported |
UnknownNumber | bool | — | 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 » |
Token | string | — | Used only by official iOS apps for Firebase auth: device token for apple push. |
AppSandbox | bool | — | Used only by official iOS apps for firebase auth: whether a sandbox-certificate will be used during transmission of the push notification. |
References
- Official documentation
- Generated Go reference
- TL definition:
codeSettings#ad253d78