MadelineProtoDocs/old_docs/API_docs_v25/constructors/updates_differenceSlice.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

1.7 KiB

title description image
updates.differenceSlice Difference slice https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: updates.differenceSlice

Back to constructors index

Difference slice

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

PWRTelegram json-encoded version:

{"_": "updates.differenceSlice", "new_messages": [Message], "new_encrypted_messages": [EncryptedMessage], "other_updates": [Update], "chats": [Chat], "users": [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}