MadelineProtoDocs/old_docs/API_docs_v41/constructors/codeSettings.md

1.6 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.
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}