MadelineProtoDocs/old_docs/API_docs_v73/constructors/updates_difference.md
Daniil Gentili e5a1324684 docufix
2018-04-04 23:19:57 +00:00

1.5 KiB

title description image
updates.difference updates_difference attributes, type and example https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: updates.difference

Back to constructors index

Attributes:

Name Type Required
new_messages Array of Message Yes
new_encrypted_messages Array of EncryptedMessage Yes
other_updates Array of Update Yes
chats Array of Chat Yes
users Array of User Yes
state updates_State Yes

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

PWRTelegram json-encoded version:

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