MadelineProtoDocs/old_docs/API_docs_v34/constructors/codeSettings.md
2020-10-01 20:29:43 +02:00

1.5 KiB

title description image
codeSettings Settings used by telegram servers for sending the confirm code. 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
app_hash string Optional

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'}