MadelineProtoDocs/docs/API_docs/constructors/codeSettings.md

41 lines
916 B
Markdown
Raw Normal View History

2019-03-08 13:49:23 +01:00
---
title: codeSettings
2019-03-08 14:35:09 +01:00
description: Code settings
2019-03-08 13:49:23 +01:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: codeSettings
[Back to constructors index](index.md)
2019-03-08 14:35:09 +01:00
Code settings
2019-03-08 13:49:23 +01:00
### Attributes:
2019-03-08 14:35:09 +01:00
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|allow\_flashcall|[Bool](../types/Bool.md) | Optional|Allow flashcal?|
|current\_number|[Bool](../types/Bool.md) | Optional|Current number?|
2019-08-15 20:30:02 +02:00
|allow\_app\_hash|[Bool](../types/Bool.md) | Optional|Whether to allow a persistent app hash|
2019-03-08 13:49:23 +01:00
### Type: [CodeSettings](../types/CodeSettings.md)
### Example:
```php
2019-08-15 20:25:16 +02:00
$codeSettings = ['_' => 'codeSettings', 'allow_flashcall' => Bool, 'current_number' => Bool, 'allow_app_hash' => Bool];
2019-03-08 13:49:23 +01:00
```
Or, if you're into Lua:
```lua
2019-08-15 20:25:16 +02:00
codeSettings={_='codeSettings', allow_flashcall=Bool, current_number=Bool, allow_app_hash=Bool}
2019-03-08 13:49:23 +01:00
```