mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-15 11:06:58 +01:00
1.4 KiB
1.4 KiB
title | description |
---|---|
updates.difference | updates_difference attributes, type and example |
Constructor: updates.difference
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], 'new_encrypted_messages' => [EncryptedMessage], 'other_updates' => [Update], 'chats' => [Chat], 'users' => [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}