mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-04 02:28:31 +01:00
36 lines
1.5 KiB
Markdown
36 lines
1.5 KiB
Markdown
---
|
|
title: "updates.differenceSlice"
|
|
description: "Incomplete list of occurred events."
|
|
nav_exclude: true
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
redirect_from: /API_docs/constructors/updates_differenceSlice.html
|
|
---
|
|
# Constructor: updates.differenceSlice
|
|
[Back to constructors index](/API_docs/constructors/index.html)
|
|
|
|
|
|
|
|
Incomplete list of occurred events.
|
|
|
|
### Attributes:
|
|
|
|
| Name | Type | Required | Description |
|
|
|----------|---------------|----------|-------------|
|
|
|new\_messages|Array of [Message](/API_docs/types/Message.html) | Yes|List of new messages|
|
|
|new\_encrypted\_messages|Array of [EncryptedMessage](/API_docs/types/EncryptedMessage.html) | Yes|New messages from the [encrypted event sequence](https://core.telegram.org/api/updates)|
|
|
|other\_updates|Array of [Update](/API_docs/types/Update.html) | Yes|List of updates|
|
|
|chats|Array of [Chat](/API_docs/types/Chat.html) | Yes|List of chats mentioned in events|
|
|
|users|Array of [User](/API_docs/types/User.html) | Yes|List of users mentioned in events|
|
|
|intermediate\_state|[updates.State](/API_docs/constructors/updates.State.html) | Yes|Intermediary state|
|
|
|
|
|
|
|
|
### Type: [updates.Difference](/API_docs/types/updates.Difference.html)
|
|
|
|
|
|
### Example:
|
|
|
|
```
|
|
$updates_differenceSlice = ['_' => 'updates.differenceSlice', 'new_messages' => [Message, Message], 'new_encrypted_messages' => [EncryptedMessage, EncryptedMessage], 'other_updates' => [Update, Update], 'chats' => [Chat, Chat], 'users' => [User, User], 'intermediate_state' => updates.State];
|
|
```
|