MadelineProtoDocs/old_docs/API_docs_v40/constructors/updates.difference.md
2019-12-27 18:25:37 +01:00

1.4 KiB

title description image
updates.difference Full list of occurred events. https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: updates.difference

Back to constructors index

Full 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
state updates.State Yes Current state

Type: updates.Difference

Example:

$updates.difference = ['_' => 'updates.difference', 'new_messages' => [Message, Message], 'new_encrypted_messages' => [EncryptedMessage, EncryptedMessage], 'other_updates' => [Update, Update], 'chats' => [Chat, Chat], 'users' => [User, User], 'state' => updates.State];

Or, if you're into Lua:

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