MadelineProtoDocs/old_docs/API_docs_v2/constructors/messages.sentEncryptedFile.md

41 lines
1002 B
Markdown
Raw Normal View History

2020-06-16 17:50:25 +02:00
---
title: messages.sentEncryptedFile
description: Message with a file enclosure sent to a protected chat
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/messages_sentEncryptedFile.html
---
# Constructor: messages.sentEncryptedFile
[Back to constructors index](index.md)
Message with a file enclosure sent to a protected chat
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|date|[int](../types/int.md) | Yes|Sending date|
|file|[EncryptedFile](../types/EncryptedFile.md) | Optional|Attached file|
### Type: [messages.SentEncryptedMessage](../types/messages.SentEncryptedMessage.md)
### Example:
```php
$messages.sentEncryptedFile = ['_' => 'messages.sentEncryptedFile', 'date' => int, 'file' => EncryptedFile];
```
Or, if you're into Lua:
```lua
messages.sentEncryptedFile={_='messages.sentEncryptedFile', date=int, file=EncryptedFile}
```