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

1.8 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.
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

Type: CodeSettings

Example:

$codeSettings = ['_' => 'codeSettings', 'allow_flashcall' => Bool, 'current_number' => Bool, 'allow_app_hash' => Bool];

Or, if you're into Lua:

codeSettings={_='codeSettings', allow_flashcall=Bool, current_number=Bool, allow_app_hash=Bool}