MadelineProtoDocs/old_docs/API_docs_v44/constructors/updates.differenceSlice.md
2019-12-27 18:46:25 +01:00

1.5 KiB

title description image redirect_from
updates.differenceSlice Incomplete list of occurred events. https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png /API_docs/constructors/updates_differenceSlice.html

Constructor: updates.differenceSlice

Back to constructors index

Incomplete list of occurred events.

Attributes:

Name Type Required Description
new_messages Array of Message Yes New messages
new_encrypted_messages Array of EncryptedMessage Yes New encrypted messages
other_updates Array of Update Yes Other updates
chats Array of Chat Yes Chats
users Array of User Yes Users
intermediate_state updates.State Yes Intermediary state

Type: updates.Difference

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];

Or, if you're into Lua:

updates.differenceSlice={_='updates.differenceSlice', new_messages={Message}, new_encrypted_messages={EncryptedMessage}, other_updates={Update}, chats={Chat}, users={User}, intermediate_state=updates.State}