telegram api constructor · layer 229 · #ad253d78

codeSettings

Settings used by telegram servers for sending the confirm code.

definition

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

nametypedescription
flags#Flags, see TL conditional fields
allow_flashcallflags.0?trueWhether to allow phone verification via phone calls.
current_numberflags.1?truePass true if the phone number is used on the current device. Ignored if allow_flashcall is not set.
allow_app_hashflags.4?trueIf 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
allow_missed_callflags.5?trueWhether this device supports receiving the code using the auth.codeTypeMissedCall method
allow_firebaseflags.7?trueWhether Firebase auth is supported
unknown_numberflags.9?trueSet 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.
logout_tokensflags.6?Vector<bytes>Previously stored future auth tokens, see the documentation for more info »
tokenflags.8?stringUsed only by official iOS apps for Firebase auth: device token for apple push.
app_sandboxflags.8?BoolUsed only by official iOS apps for firebase auth: whether a sandbox-certificate will be used during transmission of the push notification.

type

CodeSettings

history

present in layers 95–229 · constructor id changed 3×

idlayers
#302f59f395–103
#debebe83104–134
#8a6469c2135–151
#ad253d78152–229