2019-03-29 21:12:30 +01:00
|
|
|
---
|
|
|
|
title: updateEncryption
|
2019-12-27 17:48:04 +01:00
|
|
|
description: Change of state in an encrypted chat.
|
2019-03-29 21:12:30 +01:00
|
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
|
|
---
|
|
|
|
# Constructor: updateEncryption
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-12-27 17:48:04 +01:00
|
|
|
Change of state in an encrypted chat.
|
2019-03-29 21:12:30 +01:00
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required | Description |
|
|
|
|
|----------|---------------|----------|-------------|
|
2019-12-27 17:48:04 +01:00
|
|
|
|chat|[EncryptedChat](../types/EncryptedChat.md) | Optional|Encrypted chat|
|
|
|
|
|date|[int](../types/int.md) | Yes|Date of change|
|
2019-03-29 21:12:30 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [Update](../types/Update.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```php
|
|
|
|
$updateEncryption = ['_' => 'updateEncryption', 'chat' => EncryptedChat, 'date' => int];
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
```lua
|
|
|
|
updateEncryption={_='updateEncryption', chat=EncryptedChat, date=int}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|