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
AllowFlashcallboolWhether to allow phone verification via phone calls.
CurrentNumberboolPass true if the phone number is used on the current device. Ignored if allow_flashcall is not set.
AllowAppHashboolIf 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
AllowMissedCallboolWhether this device supports receiving the code using the auth.codeTypeMissedCall method
AllowFirebaseboolWhether Firebase auth is supported
UnknownNumberboolSet 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[][]bytePreviously stored future auth tokens, see the documentation for more info »
TokenstringUsed only by official iOS apps for Firebase auth: device token for apple push.
AppSandboxboolUsed only by official iOS apps for firebase auth: whether a sandbox-certificate will be used during transmission of the push notification.

References