2019-03-08 13:49:23 +01:00
|
|
|
---
|
|
|
|
title: inputEncryptedFile
|
2019-12-27 17:48:04 +01:00
|
|
|
description: Sets forwarded encrypted file for attachment.
|
2019-03-08 13:49:23 +01:00
|
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
|
|
---
|
|
|
|
# Constructor: inputEncryptedFile
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-12-27 17:48:04 +01:00
|
|
|
Sets forwarded encrypted file for attachment.
|
2019-03-08 13:49:23 +01:00
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required | Description |
|
|
|
|
|----------|---------------|----------|-------------|
|
2019-12-27 17:48:04 +01:00
|
|
|
|id|[long](../types/long.md) | Yes|File ID, value of **id** parameter from [encryptedFile](../constructors/encryptedFile.md)|
|
|
|
|
|access\_hash|[long](../types/long.md) | Yes|Checking sum, value of **access\_hash** parameter from [encryptedFile](../constructors/encryptedFile.md)|
|
2019-03-08 13:49:23 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [InputEncryptedFile](../types/InputEncryptedFile.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```php
|
|
|
|
$inputEncryptedFile = ['_' => 'inputEncryptedFile', 'id' => long, 'access_hash' => long];
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
```lua
|
|
|
|
inputEncryptedFile={_='inputEncryptedFile', id=long, access_hash=long}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|