MadelineProtoDocs/old_docs/API_docs_v81/constructors/inputSecureValue.md

50 lines
1.7 KiB
Markdown
Raw Normal View History

2018-07-12 20:24:55 +02:00
---
title: inputSecureValue
description: inputSecureValue attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: inputSecureValue
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|type|[SecureValueType](../types/SecureValueType.md) | Yes|
|data|[SecureData](../types/SecureData.md) | Optional|
|front\_side|[InputSecureFile](../types/InputSecureFile.md) | Optional|
|reverse\_side|[InputSecureFile](../types/InputSecureFile.md) | Optional|
|selfie|[InputSecureFile](../types/InputSecureFile.md) | Optional|
|files|Array of [InputSecureFile](../types/InputSecureFile.md) | Optional|
|plain\_data|[SecurePlainData](../types/SecurePlainData.md) | Optional|
### Type: [InputSecureValue](../types/InputSecureValue.md)
### Example:
```
$inputSecureValue = ['_' => 'inputSecureValue', 'type' => SecureValueType, 'data' => SecureData, 'front_side' => InputSecureFile, 'reverse_side' => InputSecureFile, 'selfie' => InputSecureFile, 'files' => [InputSecureFile, InputSecureFile], 'plain_data' => SecurePlainData];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "inputSecureValue", "type": SecureValueType, "data": SecureData, "front_side": InputSecureFile, "reverse_side": InputSecureFile, "selfie": InputSecureFile, "files": [InputSecureFile], "plain_data": SecurePlainData}
```
Or, if you're into Lua:
```
inputSecureValue={_='inputSecureValue', type=SecureValueType, data=SecureData, front_side=InputSecureFile, reverse_side=InputSecureFile, selfie=InputSecureFile, files={InputSecureFile}, plain_data=SecurePlainData}
```