MadelineProtoDocs/old_docs/API_docs_v103/constructors/updates_difference.md
2019-08-15 20:25:16 +02:00

1.3 KiB

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

Constructor: updates.difference

Back to constructors index

Difference

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 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}