MadelineProtoDocs/docs/API_docs/constructors/updateEncryption.md
2024-05-01 14:53:46 +02:00

31 lines
755 B
Markdown

---
title: "updateEncryption"
description: "Change of state in an encrypted chat."
nav_exclude: true
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: updateEncryption
[Back to constructors index](/API_docs/constructors/index.html)
Change of state in an encrypted chat.
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|chat|[EncryptedChat](/API_docs/types/EncryptedChat.html) | Optional|Encrypted chat|
|date|[int](/API_docs/types/int.html) | Yes|Date of change|
### Type: [Update](/API_docs/types/Update.html)
### Example:
```
$updateEncryption = ['_' => 'updateEncryption', 'chat' => EncryptedChat, 'date' => int];
```