MadelineProtoDocs/old_docs/API_docs_v102/constructors/codeSettings.md
2019-12-27 17:48:04 +01:00

1.7 KiB

title: codeSettings description: Settings used by telegram servers for sending the confirm code. Example implementations: telegram for android, tdlib. image: 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.
app_hash_persistent Bool Optional Persistent hash?
app_hash string Optional Hash type

Type: CodeSettings

Example:

$codeSettings = ['_' => 'codeSettings', 'allow_flashcall' => Bool, 'current_number' => Bool, 'app_hash_persistent' => Bool, 'app_hash' => 'string'];

Or, if you're into Lua:

codeSettings={_='codeSettings', allow_flashcall=Bool, current_number=Bool, app_hash_persistent=Bool, app_hash='string'}