Layer 220
constructor
codeSettings#ad253d78 flags:# allow_flashcall:flags.0?true current_number:flags.1?true allow_app_hash:flags.4?true allow_missed_call:flags.5?true allow_firebase:flags.7?true unknown_number:flags.9?true logout_tokens:flags.6?Vector<bytes> token:flags.8?string app_sandbox:flags.8?Bool = CodeSettings;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
AllowFlashcall flags.0?true Whether to allow phone verification via phone calls.
CurrentNumber flags.1?true Pass true if the phone number is used on the current device. Ignored if allow_flashcall is not set.
AllowAppHash flags.4?true 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 flags.5?true Whether this device supports receiving the code using the auth. code Type Missed Call method
AllowFirebase flags.7?true Whether Firebase auth is supported
UnknownNumber flags.9?true 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 Vector<bytes> Previously stored future auth tokens, see the documentation for more info
Token flags.8?string Used only by official i OS apps for Firebase auth: device token for apple push.
AppSandbox flags.8?Bool Used only by official i OS apps for firebase auth: whether a sandbox-certificate will be used during transmission of the push notification.

Returns

CodeSettings

Gogram Example

// Creating CodeSettings constructor
obj := &tg.CodeSettings{

    // Optional fields:
    // AllowFlashcall: true,
    // CurrentNumber: true,
    // AllowAppHash: true,
    // AllowMissedCall: true,
    // ... more optional fields
}