MadelineProtoDocs/docs/API_docs/constructors/codeSettings.md
2024-05-01 14:53:46 +02:00

2.5 KiB

title description nav_exclude image
codeSettings Settings used by telegram servers for sending the confirm code. true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: codeSettings

Back to constructors index

Settings used by telegram servers for sending the confirm code.

Example implementations: telegram for android, tdlib.

Attributes:

Name Type Required Description
allow_flashcall Bool Optional Whether to allow phone verification via phone calls.
current_number Bool Optional Pass true if the phone number is used on the current device. Ignored if allow_flashcall is not set.
allow_app_hash Bool Optional 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
allow_missed_call Bool Optional Whether this device supports receiving the code using the auth.codeTypeMissedCall method
allow_firebase Bool Optional Whether Firebase auth is supported
unknown_number Bool Optional
logout_tokens Array of bytes Optional Previously stored future auth tokens, see the documentation for more info »
token string Optional Used only by official iOS apps for Firebase auth: device token for apple push.
app_sandbox Bool Optional Used only by official iOS apps for firebase auth: whether a sandbox-certificate will be used during transmission of the push notification.

Type: CodeSettings

Example:

$codeSettings = ['_' => 'codeSettings', 'allow_flashcall' => Bool, 'current_number' => Bool, 'allow_app_hash' => Bool, 'allow_missed_call' => Bool, 'allow_firebase' => Bool, 'unknown_number' => Bool, 'logout_tokens' => ['bytes', 'bytes'], 'token' => 'string', 'app_sandbox' => Bool];